setBytes(String parameterName, byte[] x)

Syntax:

void setBytes(String parameterName,
              byte[] x)
              throws SQLException

Description:

Sets the designated parameter to the given Java array of bytes. The driver converts this to an SQL VARBINARY or LONGVARBINARY (depending on the argument's size relative to the driver's limits on VARBINARY values) when it sends it to the database.

Parameters:

parameterName

the name of the parameter

x

the parameter value

Throws:

SQLException - if a database access error occurs, parameterName is not a valid parameter name, or the prepared statement has been closed

Reference:

For more information, reference JDBC documentation for: CallableStatement.setBytes(String, byte[])