from PHP.FAQTS:
http://www.faqts.com/knowledge_base/view.phtml/aid/666/fid/876
How do I get an image in a mySQL/Oracle (or other) blob fields to display on a regular html page?
Jan 25th, 2000 15:33
Matt Gregory, Onno Benschop
//The problem is that binary data cannot be inserted directly into
//an html file, so we must trick the browser into thinking it's
//retrieving an image on the webserver. To do this place an
//image tag on the page with the src set to a php script which returns
//nothing but a header and the image. The exampe below will return the
//image and fill in the image tag properly...
//example image tag
<image src="getimage.php3?ImgID=1">