Jump to content


This topic is now archived and is closed to further replies.


which one is better, storing images in MySQL database or elsewhere...

Recommended Posts

dear friends,
while working on a project i came across a question which i asked to my-self. the answer seems to be very straight forward but to satisfy my mind i want opinions from you people.
the question is:
is it better to put images(that are uploaded from client side onto the server side) in a database say MySQL, or putting the paths to images in database and images in separate directories is a better approach as there are a few constrains while adopting any one of the two techniques. these constrains are not only the consequence of PHP programming tricks but also due to the work needed to be done for the accomplishment of job.

Share this post

Link to post
Share on other sites
I put the filenames and information about the images into the database and then link them with the actual image itself in another folder.

But thats me.

Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.