ASP.Net MVC storage in resources or as content

I have a very large number of images (about 20 thousand) that I do not want to receive directly from the user. Therefore, I have a controller that returns the requested images if the request is valid. I wonder if I should store images in an internal Resourcefile or as content? I tried the content before, but you can access them from the browser if you know the folder and file name. Files do not change at runtime.

Thanks in advance for any hint of this!

+3
source share
1 answer

To do this, you should use the folder App_Data. This folder is hidden on the outside, so it is ideal for storing embedded databases or files as you wish.

You may be interested in:

What is the App_Data folder used in Visual Studio?

+2
source

All Articles