Forum Moderators: coopster

Message Too Old, No Replies

Image to mysql?

         

bobnew32

11:45 pm on Aug 21, 2003 (gmt 0)

10+ Year Member



Can sombody please point me in the right direction to a guide/thread on uploading an image and turning its contents into a "blob?" (I think) for a mysql database? Thanks

bcolflesh

12:11 am on Aug 22, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



weberdev.com/get_example.php3?count=3688

experts-exchange.com/Web/Web_Languages/PHP/Q_20004739.html

jatar_k

3:00 am on Aug 22, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



I don't usually store images in the actual db, it can become quite a lot of data when loading a page. I usually store the path to the image in the db and have one centralized directory that I use to store them in.

If you are uploading large images you may want to think about using php to resize or optimize them. You can even create thumbnails if you want to serve a smaller image at first glance.

There is a little scipt in here that might be of interest.
Bag-O-Tricks for PHP II [webmasterworld.com]
msg 29