【发布时间】:2016-06-06 11:07:25
【问题描述】:
我正在尝试获取存储在我的本地系统目录中的图像,我将图像路径存储在 MySQl 数据库中,图像的路径是
H:\IVS-FEB 2016\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\IVS\uploads\share1.png
我正在尝试使用
获取此路径<img src="<%String pathup =rs2.getString("pathup");out.print(pathup);%>" width="200" height="200" alt="Uploaded by user">
但这不会在我的网页上显示图像? :( 在浏览器中点击检查元素选项时出现以下错误
不允许加载本地资源:file:///H:/IVS-FEB%202016/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/IVS/uploads/share1。 png
【问题讨论】:
-
不,它不工作,它仍然不显示图像