Jump to content


Photo

Display image from BLOB field


  • Please log in to reply
2 replies to this topic

#1 redscorpion1971

redscorpion1971
  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 12 May 2006 - 08:46 PM

Is there a way to display an image from a blob field without having to change the page without having to change the content type. Basically I want to show 10 images at a time in an HTML table.

#2 ryanlwh

ryanlwh
  • Staff Alumni
  • Advanced Member
  • 511 posts

Posted 12 May 2006 - 09:01 PM

you have to create a separate script that use the content type header to display a specific image, and then use the following HTML code to display them:

<img src="display_img.php?imgID=1" />

Clear enough?
Please use EDIT * 100...
Please use
or [php] * 1000...

PLEASE READ THE POSTED SOLUTIONS CAREFULLY * 1000000...

#3 lepetitcrabe

lepetitcrabe
  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 15 May 2006 - 12:00 PM

not clear for me,.... i' trying to display a price list (image + price) on 1 page. Can't manage to display the pic... all i'm getting is binary data... and when i'm changing the header i get an error msg saying it's already been declared...


[!--quoteo(post=373317:date=May 12 2006, 11:01 PM:name=ryanlwh)--][div class=\'quotetop\']QUOTE(ryanlwh @ May 12 2006, 11:01 PM) View Post[/div][div class=\'quotemain\'][!--quotec--]
you have to create a separate script that use the content type header to display a specific image, and then use the following HTML code to display them:

<img src="display_img.php?imgID=1" />

Clear enough?
[/quote]





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users