19202122232425
} public Object get(ResultSet rs, String colName) throws SQLException { File f = this.createTempFile(); Files.write(f, rs.getBlob(colName).getBinaryStream()); return new SimpleBlob(f); }
22232425262728
File f = this.createTempFile(); Blob blob = rs.getBlob(colName); if (blob == null) return null; Files.write(f, blob.getBinaryStream()); return new SimpleBlob(f); }