PDA

View Full Version : Display image form mysql


jayloo
1-27-04, 12:22 AM
I am storing a pic as a longblob in the database. I want echo the longblob field and show it as a pic via this link
http://jalw75.temp.powweb.com/lib/get_logo.php?id=3

in this file I select the file type and binary data form the DB and display it like this --

header( "Content-type: $type");
echo $data;

I have the entire site working at http://jayloo.com/lib/get_logo.php?id=3

I just want the image to display. When I try to display the image I get "The image “http://jalw75.temp.powweb.com/lib/get_logo.php?id=3” cannot be displayed, because it contains errors.".

Can someone help?

jayloo
1-27-04, 12:48 AM
Nevermind.....um I can't delete this thread.