Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
How to add an Image to a database
Name: rsasalm Date: September 19, 2005 at 08:01:58 Pacific OS: Win XP CPU/Ram: P4
Comment:
Hi all, I am using Mysql with PHP. I want to add som images, *.gif *.jpe etc How to do that? thanks for help regards /rsasalm
Name: Tim_computer_user Date: September 19, 2005 at 10:13:28 Pacific
Reply:
good luck. i try to learn from your questions. i will look for answers also
0
Response Number 2
Name: anonproxy Date: September 22, 2005 at 00:07:26 Pacific
Reply:
Personally, I would avoid doing this when possible.
Let's say your picture comes from a form (could be read from a file, scraped from a webpage, etc.). Grab your uploaded temp file. Open output buffering. Use a function like createjpeg() to bring your image into local memory. Then save the output buffer to a local variable and close the buffer.
Your image is now contained in a variable. Run addslashes() on the data. Finally, insert the image into a MySQL BLOB field.
Summary: I was wondering, I use frontpage, how do I decrease the dpi (dots per inch) in an image to make my pages load up faster? Thanks in advance, Jason http://hyperlinkzservices.tripod.com/index.htm ...
Summary: To remove an image from Google's image index, add a robots.txt file to the root of the server that blocks the image. To remove all the images on your site from google, place the following robots.txt f...
Summary: I know this may be a dumb question with an obvious answer, but I just want to know how to lighten/darken pictures i have taken with my digital camera. I open them with Paint, but can't find anything i...