It is currently Sat Feb 04, 2012 3:52 pm

All times are UTC + 2 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Problem displaying images stored in MySQL database
PostPosted: Fri Oct 10, 2008 5:12 pm 
Offline

Joined: Fri Oct 10, 2008 5:07 pm
Posts: 20
Location: Wales
There's a pretty good and simple tutorial on this site entitled "Saving Images in MySQL". I've followed it to the letter, but the pictures aren't displaying, there're just question marks where the pictures should be.
Any ideas?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 14, 2008 11:56 pm 
Offline

Joined: Sun May 02, 2004 11:34 pm
Posts: 6498
Location: toronto, canada
Most likel you are not setting the mime type in the image download...

see here for another example http://www.weberdev.com/get_example-4062.html

_________________
Lostboy

Cat, the other other white meat

Please read Posting Etiquette before posting

You can always try Google


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 17, 2008 6:20 pm 
Offline

Joined: Fri Oct 10, 2008 5:07 pm
Posts: 20
Location: Wales
Thank you for your reply. I have this line on the "second type" page:

Header( "Content-type: image/jpg");

Is that not enough (bearing in mind the file I uploaded was a jpg)?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 2 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron