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

Serving Images Stored in a Database through a Static URL using .NET Core 3.1

Rate me:
Please Sign up or sign in to vote.
4.65/5 (8 votes)
11 Sep 2020CPOL6 min read 27.4K   285   18  
A small API application, written in .NET Core 3.1 to demonstrate how to retrieve images stored in a database 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.

Views

Daily Counts

Downloads

Weekly Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect Hire Quality Software
Thailand Thailand
I've been working with software development for most of my working life. I am currently leading a development team in Thailand, www.hirequalitysoftware.com . When I am not writing code, I enjoy spending time outdoors and travel around in Asia.

Comments and Discussions