|
Posted by Sean on 12/23/05 17:37
Not sure if this will work.
Put
//Do the get blob stuff
header ("Content-type: image/jpg");
echo $photo;
In a separate page called something like image.php. You should pass id
values to the page to display different images, so lets say the image
is id value 1, e.g. image.php?id=1.
Then try:
list($width, $height, $type, $attr) = getimagesize('image.php?id=1') ;
A better way to do it is not store the images in the database at all,
but store references to the images, and keep the image files on the
file system. By the simple fact you are storing images in the database
you are creating for yourself lots of unnecessary problems.
Navigation:
[Reply to this message]
|