Code example for Blob

Methods: getByteslength

0
public class DB2JDBCAdapter extends DefaultJDBCAdapter { 
 
    protected byte[] getBinaryData(ResultSet rs, int index) throws SQLException {
        // Get as a BLOB 
        Blob aBlob = rs.getBlob(index);
        return aBlob.getBytes(1, (int) aBlob.length());
    } 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE