Jump to content

Archived

This topic is now archived and is closed to further replies.

redscorpion1971

Display image from BLOB field

Recommended Posts

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.

Share this post


Link to post
Share on other sites
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:

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

Clear enough?

Share this post


Link to post
Share on other sites
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) [snapback]373317[/snapback][/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:

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

Clear enough?
[/quote]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.