Code example for ResultSet

Methods: getBlob

0
 */ 
public class OracleJDBCAdapter extends DefaultJDBCAdapter { 
 
    protected byte[] getBinaryData(ResultSet rs, int index) throws SQLException {
        // Get as a BLOB 
        Blob aBlob = rs.getBlob(index);
        if (aBlob == null) {
            return null; 
        } 
        return aBlob.getBytes(1, (int) aBlob.length());
    } 
}