Issue
This Content is from Stack Overflow. Question asked by Robincho Bibanka
I try to add image in html with full path. I google the problem and found this src absolute path problem and I try every answer, but does not work for me.
This is my code, do you have any idea, why image is not found?
<img src="file://C:/Storage/Images/a.png" alt="las vegas" width="200" height="200">
Solution
You should be referencing it as localhost
. Like this:
<img src="http:\\localhost\site\img\mypicture.jpg"/>
This Question was asked in StackOverflow by luca and Answered by rlb.usa It is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.