I have a mysql db in which i upload images as blobs , im storing them successfully as i also echo them successfully when i query my db using Header("Content-type: image/jpeg ");
Any help will be appriciated 🙂 Im still looking...
Well i figured out a way , by making the script return the image , and diplaying it in my html page in a src tag..and it worked fine , if someone has any better idea , glad to hear...
Haribalos
Hmm, do you think storing images as blobs in MYSQL is better than if we were to store them via the filesystem with a pointer to that file?
Ray
Can you tell me how you did that? I can upload and save to a file; but can only load database images via a header.
Would appreciate the information.
Thanks Rick M.
Well it depends, i decided to put my images as blobs because the size of each image is max 7kb , and the second reason is that it's a much safer way if you're designing a portal system. I didn't wanted to have those images in directories.
Well , you have to make a php prog that reads images and returns them , after that you put that script in your page that you want to display img's in a img tag. <img src=../getImage.php3?id=[.]> If you want source code,email me at haribalos@hotmail.com , and i'll reply you with my source prg.