3

I have a very huge amount of images (about 20K) that I don't want to be directly accessible by a user. Therefore I have a controller that streams a requested images back if the requesttoken is valid. I wonder now if I should store the images within a internal Resourcefile or just as content? I tried content before but you are able to access them from the browser if you know the folder and filename. The files don't change at runtime.

Thanks in advance for any hint on this!

fretje
  • 8,322
  • 2
  • 49
  • 61
seba
  • 974
  • 2
  • 10
  • 30

1 Answers1

2

You should use the App_Data folder for this. This folder is hidden from the outside so it is ideal for storing embedded databases or files as you want.

You may be interested in:

What is the App_Data folder used for in Visual Studio?

Community
  • 1
  • 1
Lasse Espeholt
  • 17,622
  • 5
  • 63
  • 99