views:

39

answers:

1

Possible Duplicate:
manage uploaded files in database or file system?

Hi!

I'm currently developing a website I just want to know of it is more optimal to store images in a table(MySQL) or to store the reference to an image in the table ? In the latter, the image is stored in a directory in a server instead of SQL-database

Many thanks

A: 

Per Preet in comments, http://stackoverflow.com/questions/3707629/manage-uploaded-files-in-database-or-file-system asks this same question.

I'm pretty certain most people will tell you to keep the files on the filesystem rather than stuffing them in blobs in your DB.

Jase