Hi,
I'm trying to retrieve several images (stored as blobs in mysql). I can display any of the images individually from the database.
However when I try to display all the images as scaled down thumbnails, I only get the binary data displayed.
I know this has to do with the header content, but when I try to use
I just end up getting headers already sent.
I've got different formats of images such as gif & jpeg.
Has anyone got any way of displaying all the images in the DB as thumbnails, in the same way as many of the image galleries display their thumbnails?
Thanks in advance - hope this is a reletively straight forward request!!
I'm trying to retrieve several images (stored as blobs in mysql). I can display any of the images individually from the database.
However when I try to display all the images as scaled down thumbnails, I only get the binary data displayed.
I know this has to do with the header content, but when I try to use
Code:
Header( "Content-type: $type"); //$type is the mime field in db
I just end up getting headers already sent.
I've got different formats of images such as gif & jpeg.
Has anyone got any way of displaying all the images in the DB as thumbnails, in the same way as many of the image galleries display their thumbnails?
Thanks in advance - hope this is a reletively straight forward request!!