前端之家收集整理的这篇文章主要介绍了
oracle blob 字段的解析,
前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
oracle.
sql.BLOB data = (oracle.
sql.BLOB)resultSet.getBlob("data"); InputStream is = data.getBinaryStream(); BufferedReader reader = new BufferedReader(new InputStreamReader(is)); String s; StringBuilder sbBlobStr = new StringBuilder(); while( (s = reader.readLine()) != null) { sbBlobStr.append(s); }
原文链接:https://www.f2er.com/oracle/210665.html