Click here to Skip to main content
15,887,683 members
Articles / Web Development / ASP.NET

Serving images stored in DB through a static URL, using .NET Core 3.1

4 Sep 2020CPOL 0  
A small API application, written in .NET Core 3.1 to demonstrate how to retrieve images stored in DB using a normal static image URL.
A common choice that needs to be made when implementing a web application that supports uploading binary content, like PDF files or Avatar images, is whether to store the binary content in the file system or cloud storage or perhaps in the database. This article will not debate what solution is best under what circumstances. But that said, storing binary content data directly in the database has some strong advantages to it. Being able to store other content together with the binary content in a single database transaction is one of them. Having all content data in one place also simplifies the restoring of backups.
Only logged in members can view this content

Please go to the ASP.NET Table of Contents to view the list of available articles in this section.