RE: [PHP] Displaying Blobs by a newbie

From: Date: Fri, 12 Sep 2003 18:57:33 +0000
Subject: RE: [PHP] Displaying Blobs by a newbie
Groups: php.general 
Request: Send a blank email to php-general+get-162458@lists.php.net to get a copy of this message
You didn't say how the images were placed in the db but you did indicate they were jpeg format. I'd try; fetching the db column in to a string variable; then; $im = imagecreatefromstring($imagestring); header ("Content-type: image/jpeg"); imagejpeg($im); imagedestroy($im); good luck, Warren Vail -----Original Message----- From: Phil King [mailto:phil@phil-king.com] Sent: Friday, September 12, 2003 11:54 AM To: php-general@lists.php.net Subject: [PHP] Displaying Blobs by a newbie Hi All, I have some images in a mysql database. I wish to display all these images on a PHP Page. I have created a query to retrieve all the images from the database but all that is displayed is characters. I have the Content-Type as image/jpeg in the header of the page to display the images. Can anyone advise me or point me in the right direction to rectify this. Thanks very much. Phil. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#162458) next »