Mysql 大字段(BLOB)处理方式

entity = docDispatchDocumentService.get(id);
byte[] content = entity.getContent();
try {
Blob b = new SerialBlob(content);
String blobString = new String(b.getBytes(1, (int) b.length()));
System.out.print(blobString);
} catch (SQLException e) {
e.printStackTrace();
}