public abstract byte[] getBytes (int parameterIndex) throws SQLException

Retrieves the value of the designated JDBC BINARY or VARBINARY parameter as an array of byte values in the Java programming language.

Parameters:
parameterIndex    the first parameter is 1, the second is 2, and so on

Returns:  the parameter value. If the value is SQL NULL, the result is null.

Exceptions:
SQLException    if the parameterIndex is not valid; if a database access error occurs or this method is called on a closed CallableStatement

See also:
setBytes