可以啊,看你怎么读了。Bolb blob = rs.getBlob("...");
InputStream is = blob.getInputStream();
byte[] b = new byte[a size];
int size = is.read( b );
String xml = new String(b, 0, size);
InputStream is = blob.getInputStream();
byte[] b = new byte[a size];
int size = is.read( b );
String xml = new String(b, 0, size);
解决方案 »
- WebService 为何总要打印Retrieving document at 'null'?如何去掉这句话
- hibernate 注解问题!!!怎么注解长度属性啊!在线等你啊!!!
- PreparedStatement的addBatch()和addBatch(String sql)能一起使用吗?
- 急:struts2的问题
- 出现id to load is required for loading的问题
- JDBC连接Derby错误
- spring的优缺点
- 毛了,这种问题
- 我使用javamail发一个excel文件出现错误,请各位大虾帮忙看看!
- 用EJB(应用服务器为Weblogic)来实现业务逻辑性能如何?我该不该采用这种模式来开发?经验用户不妨赐教!不慎感激!
- 简单问题
- 怎样用java编程实现DNS服务器域名解析地时间?
org.jdom.JDOMException: An invalid XML character (Unicode: 0x0) was found in the element content of the document.: Error on line 4 of document : An invalid XML character (Unicode: 0x0) was found in the element content of the document.
是什么原因呢?谢谢。。
换句话说就是要在XML的文本文件里面放二进制流。
在java里的xml分析器,好象不能对流的操作。
我也很关注这个问题。