java 怎么读取oracle的blob类型数据,我的是保存新闻内容! 只有这么多财富值了,帮个忙谢谢
2个回答
展开全部
BLOB blob = (BLOB) rs.getBlob(5);后,使用blob的getBytes()获取byte[]数据或者使用getBinaryStream() 获取流对象,这样你就可以输出到JSP页面了
追问
哥们 能加QQ吗?我的344602669
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
ResultSet ? 有方法的
Blob getBlob(int columnIndex)
Retrieves the value of the designated column in the current row of this ResultSet object as a Blob object in the Java programming language.
Blob getBlob(String columnLabel)
Retrieves the value of the designated column in the current row of this ResultSet object as a Blob object in the Java programming language.
Blob getBlob(int columnIndex)
Retrieves the value of the designated column in the current row of this ResultSet object as a Blob object in the Java programming language.
Blob getBlob(String columnLabel)
Retrieves the value of the designated column in the current row of this ResultSet object as a Blob object in the Java programming language.
追问
你说的ResultSet 方法是BLOB blob = (BLOB) rs.getBlob(5);这个吗?这个读取出来 我页面还是拿不到
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询