Page 1 of 1
Saving Image in MYSQL
Posted: Tue Dec 16, 2003 6:21 am
by winsonlee
Is there anyway i can save the image in a mysql database ??? Or i can only store it in a folder ??? I know i am able to do it with ms access. But i am not sure if mysql can do the same thing. If it can be done, can you kindly provide me a short explanation and code on how this can be done ??
Posted: Tue Dec 16, 2003 6:45 am
by twigletmac
It can vary by need, but generally it is suggested that you store the image in a folder as normal and only store the path to the image in the database. It is possible to store the image itself in MySQL but it is not usually done that way.
Mac
Posted: Tue Dec 16, 2003 9:25 am
by microthick
If you really wanna store your images in the db, then here's the tutorial I first learned from:
http://www.phpbuilder.com/columns/florian19991014.php3
Posted: Tue Dec 16, 2003 10:17 am
by m3mn0n
Interesting article. I have to admit, I never knew this was even possible.

Posted: Tue Dec 16, 2003 10:44 am
by microthick
Storing images in a db is usually only used when you have multiple web servers or file servers, I think.
Like, Friendster for instance might use a db to hold their images, but I'm not sure they do.