I have a image uploader that stores my images on that project location:
C:\Users\example\source\Workspaces\project\projectsample\Content\Files
When I try to access this images with the following URL and code it breaks:
var fileURL = "~/Content/Files/image.png";
byte[] file = File.ReadAllBytes(fileURL);
Cannot find a part of the path
What I'm missing?
EDIT
Solved with the following: How to read existing text files without defining path using AXMIM solution.