Re: [PHP] Displaying Blobs by a newbie

2003-09-14 Thread Phil King
Hi Curt, Thanks for the tip. I created the two scripts . The image tag on the main page calls the image from the other script with an incremented id parameter. Thanks for your help. Phil. "Curt Zirzow" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > * Thus wrote Phil King ([EMAIL

Re: [PHP] Displaying Blobs by a newbie

2003-09-13 Thread Curt Zirzow
* Thus wrote Phil King ([EMAIL PROTECTED]): > 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 ima

Re: [PHP] Displaying Blobs by a newbie

2003-09-13 Thread Phil King
Hi Warren, Thanks for your reply. I imported the blobs into mysql database. They were in jpeg format. Phil. "Warren Vail" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > You didn't say how the images were placed in the db but you did indicate they were jpeg format. > > I'd try; >

RE: [PHP] Displaying Blobs by a newbie

2003-09-12 Thread Vail, Warren
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