I am trying to display images on a JSP page.
Two hyperlinks are used to display image.
One of them is as follows:
<a href="img/MyPic.jpg">Image</a>
When one of the links is clicked, the corresponding image is displayed.
In the above case, MyPic.jpg
is saved in web\img\MyPic.jpg
(Inside the project folder).
In the other case, I saved the image in local disk.
E:\img\MyPic.jpg
and I tried the following code:
<a href="E:/img/MyPic.jpg">Outside image</a>
and
<a href="file:///E:/img/MyPic.jpg">Outside web</a>
But this link is not working and I can't access the image.