I need to display an image inside the img
tag.
It's a web project, running on Tomcat and Ubuntu Mate. I save in bank as String the path of where the image is:
"/opt/imagens/img.png"
To display, I put it this way
<img src="<%=urlImg.getUrl()%>" >
urlImg.getUrl()
returns "/opt/imagens/img.png"
The image does not appear, would someone please explain to me what is wrong and what should be done to correct it?