我想从类型BLOB表中命名的图像和命名的图像列中检索图像,但运行代码时它给像这个 -从Oracle数据库中检索图像,并显示在JSP图像
团块代码“ [email protected]”
请参阅我的代码获取和显示在jsp页面/浏览器中的图像: -
ResultSet resultset =
statement.executeQuery("select * from image where id = '" + id + "'") ;
浏览器页面: -
<TABLE border="1">
<TR>
<TH>ID</TH>
<TH>picture</TH>
</TR>
<TR>
<TD> <%= resultset.getString(1) %> </TD>
<TD> <%= resultset.getBlob(2) %> </TD>
</TR>
</TABLE>
<BR>
尝试使用'resultSet.getBinaryStream()回应的图像。' –