For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > January 2005 > Re: [PHP-DB] storing images in database









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PHP-DB] storing images in database
Micah Stevens

2005-01-25, 3:56 pm


Could be lots of things, improper/missing headers is most likely, although
it's not clear from your statement if you're displaying the binary data
directly in the page or are you calling an image output script in an image
tag. (as you should)

Show some code and the answer will be clear.

-Micah

On Tuesday 25 January 2005 09:11 am, Chip Wiegand wrote:
> I have stored a .jpg image in a database, then when I make a sql statement
> to display that image on a web page all I get is the cryptic code in place
> of the image. I am storing it in a row configured as a blob, mime type
> image/jpeg and binary (using phpMyAdmin). What am I doing wrong?
> Regards,
> Chip

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com