try (InputStream inputStream = resultSet.getBinaryStream(index);
ByteArrayOutputStream outStream = new ByteArrayOutputStream()) {
int len = 0;
byte[] bytes = new byte[1024];
while ((len = inputStream.read(bytes)) != -1) {
// 将bcache中读取的input数据写入outStream
outStream .write(bytes, 0, len);
}
String result = outStream.toString();
} catch (Exception e) {
throw new Exception("读取异常");
}
jdbc读取 oracle raw类型
最新推荐文章于 2024-07-29 14:22:26 发布