Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Should I store images in the database or the filesystem?

0
Posted

Should I store images in the database or the filesystem?

0

I *strongly* recommend storing the file in the filesystem and its LOCATION in the database, though there are several components out there that make storing images in a database really easy. My preference is ASPUpload from Persits Software. You can see how simple the code is by looking at AspUpload.com – User Manual. Chapter 4. You can also handle this type of task without a component, but it’s a lot more code. There are good examples available at ASP 101 and StarDeveloper. Here are the arguments for each methodology. Keep images on the filesystem, and the location and other data in the database • if there is any chance that you will migrate to a different database platform, your current BLOB format might be incompatible with, or at least a pain to convert to, the new format — since, like web browsers, each vendor has implemented things with their own slant. • when your database really goes south, to the point where even the backup is useless, you still have the files on the filesystem

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123