Page 1 of 1

Uploading image and files to MYSQL Database?

Posted: Wed Apr 27, 2011 2:22 am
by rajsekar2u
Is it good to upload images and other files to database rather than storing it in a folder.
Will this affect the performance of mysql server?

Which one is best to use?

Re: Uploading image and files to MYSQL Database?

Posted: Wed Apr 27, 2011 11:59 am
by califdon
In most circumstances it is probably best to store images in a folder, with paths stored in the database. There are several circumstances that might convince you to just store the images in the table, though. If there are only a small number of images, or the images are quite small, the performance would probably not be impacted. At least that has been my experience.