Possible Duplicate:
When to store images in a database(mySQL) and when not? (Linking image to item in database)
Which is the best method to store files on the server (in database or storing the location alone)?
What should I consider to best choose between storing MP3s/pdfs with a database.
Is it better to store the file as a BLOB in the DB? or is it better to just have a field that allows me to look at the filesystem?
The files in questions are not likely to exceed 15MiB, but all likely to be at least 1MiB, in case that’s a consideration.
The data will be accessed via PHP, if that makes a difference…
Edit: I’ll go with what I was already doing 🙂 resources on the filesystem with filenames in the database. Thanks or the input!
I’ve been working on a project for the last 3 years where large attachments were stored in the database.
Advantages
Disadvantages
Myths About DB Blobs
All the above (from my experience) is false.
Facts About Large Blobs