Re: [PHP] image retrival from db?
You need to set the content type. eg: echo Content-type: image/gif; echo $row[image]; Ethan - Original Message - From: Steve [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 18, 2001 3:56 PM Subject: [PHP] image retrival from db? Anyone have a pointer to a script or documentation on how to retrieve an image that is stored in a database? I can insert the image, but unable to display the image once retieved, i apparently am missing something. Thanks Steve
Re: [PHP] image retrival from db?
I meant to say Header(Content-type: image/gif); - Original Message - From: Steve [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 18, 2001 3:56 PM Subject: [PHP] image retrival from db? Anyone have a pointer to a script or documentation on how to retrieve an image that is stored in a database? I can insert the image, but unable to display the image once retieved, i apparently am missing something. Thanks Steve
RE: [PHP] image retrival from db?
I thought this one was quite good to get you up to speed: http://www.phpbuilder.net/columns/florian19991014.php3 Thing is, although very technically nice, it isnt really very practical, as your database increases in size rapidly, and data retrival takes longer and longer. I would recommend you still do stuff like thumbnail generation on the upload and then store the paths to the file in the database. Ray Hilton - [EMAIL PROTECTED] http://rayh.co.uk -Original Message- From: Steve [mailto:[EMAIL PROTECTED]] Sent: 19 June 2001 00:57 To: [EMAIL PROTECTED] Subject: [PHP] image retrival from db? Anyone have a pointer to a script or documentation on how to retrieve an image that is stored in a database? I can insert the image, but unable to display the image once retieved, i apparently am missing something. Thanks Steve