Java+mybatis+spring中读取BLOB类型异常
在查询包含BLOB字段的对象时可以正常查询出来,但是在调用以下代码时报异常:
((Blob) attachment.getContent()).getBinaryStream();
异常信息:
java.sql.SQLException: You cannot invoke other java.sql.Clob/java.sql.Blob methods after calling the
原创
2015-11-01 11:01:41 ·
1183 阅读 ·
0 评论