Sets the designated parameter number to the given input stream, which will have the specified number of bytes.
public final void setBinaryStream(int n,
java.io.InputStream x,
int length)
參數
n
An int that indicates the parameter number.
x
An InputStream object.
length
The number of bytes.
例外狀況
備註
This setBinaryStream method is specified by the setBinaryStream method in the java.sql.PreparedStatement interface.
When the length is set to -1, a 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.
另請參閱
參考
SQLServerPreparedStatement Class
概念
SQLServerPreparedStatement Methods
SQLServerPreparedStatement Members