我的代码是这样的
<%@ include file="getcon.jsp"%>
<html>
<head>
<title>View Image Page</title>
</head>
<body>
<table width="100%" border="0">
<!-- main content -->
<%
ResultSet rs=null;
try
{
rs=st.executeQuery("select * from file1");
while(rs.next())
{
%>
<table width="70%" height="160" border="1" align="center">
<tr>
<!-- Mention Directory where your images has been saved-->
<td><img src="<%=rs.getString("file_path") %>" alt="image" /></td>
<td> <%out.print(rs.getString(1)); %></td>
</tr>
</table>
<%
}
}
catch(Exception e)
{
out.print(""+e.getMessage());
}
%>
</table>
</body>
</html>
我可以从表格的第二列看到图像路径,但看不到图像这是什么原因,有人可以帮助我吗谢谢