oracle读取Blob数据:
Blob blob = (Blob) set.getObject(2);
if (blob != null) {
long len = blob.length();
byte[] buf = new byte[(int) len];
BufferedInputStream in = new BufferedInputStream(blob.getBinaryStream());
try {
in.read(buf , 0, (int) len);
} catch (IOException e) {
e.printStackTrace();
}
} else {
buf = new byte[0];
}
//后续自行对字节数据进行处理
Buffer buffer = Buffer.buffer(buf);