Code example for ResultSet

Methods: getBlob

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());
    } 
}