Updates the designated column with a binary stream value given the column name.
public void updateBinaryStream(java.lang.String columnName, java.io.InputStream x, int length)
Parameters
index
An integer that indicates the column index.
x
An InputStream object.
length
An integer that indicates the length of the stream.
Exceptions
Remarks
This updateBinaryStream method is specified by the updateBinaryStream method in the java.sql.ResultSet interface.
This method passes bytes from an InputStream object to selected SQL Server binary columns such as binary, varbinary, varbinary(max), image, xml, and udt. Updating character columns is not supported with this method. To update character columns with an InputStream, use the updateAsciiStream method.
When the length is set to -1, the stream is allowed, but a specific length is not required. If the InputStream passes a stream of a different length than what is specified, the JDBC driver will stop the update while it tries to preserve the connection and the current transaction.