Freigeben über


updateBinaryStream Method (java.lang.String, java.io.InputStream, int)

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)

Parameter

index

An int that indicates the column index.

x

An InputStream object.

length

An int that indicates the length of the stream.

Ausnahmen

SQLServerException

Hinweise

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.

Siehe auch

Verweis

SQLServerResultSet Class

Konzepte

updateBinaryStream Method (SQLServerResultSet)
SQLServerResultSet Methods
SQLServerResultSet Members