Tuesday, 27 August 2013

Image rendered correct link, but cannot load the image

Image rendered correct link, but cannot load the image

I have uploaded a picture to the directory ~\Files\image\C3-E1-B6-74.png,
i saved this in the database. Now I'm trying to display this image.
cshtlm
<img src="@Url.Content(file.FileLink)" alt="test" />
When this page is rendered and I check the image tag
<img alt="test"
src="C:\Users\thomas\Desktop\Freelauncher1005\Freelauncher\Files\image\C3-E1-B6-74.png">
So link is rendered correctly. When I copy this link and paste it in my
folderbrowser then it opens the corresponding image.
When searching for this problem I found
Images under "image/subfolder" cannot be found in the latest Razor Engine
- MVC.NET
I checked the extension and everything is correct.
Does anyone has another possible solution?
Thanks in advance

No comments:

Post a Comment