java 怎么读取oracle的blob类型数据,我的是保存新闻内容! 只有这么多财富值了,帮个忙谢谢

[复制链接]
查看11 | 回复2 | 2012-6-6 18:40:59 | 显示全部楼层 |阅读模式
BLOB blob = (BLOB) rs.getBlob(5);后,使用blob的getBytes()获取byte[]数据或者使用getBinaryStream() 获取流对象,这样你就可以输出到JSP页面了...
回复

使用道具 举报

千问 | 2012-6-6 18:40:59 | 显示全部楼层
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 p...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行