Ask Learn
Preview
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Sets the designated parameter to the specified input stream, which will have the specified number of bytes.
public void setBinaryStream(java.lang.String parameterName,
java.io.InputStream value,
int length)
parameterName
A String that contains the name of the parameter.
value
An InputStream object.
length
An int that indicates the length in number of bytes.
This setBinaryStream method is specified by the setBinaryStream method in the java.sql.CallableStatement interface.
If the length of the stream is different than what is specified in the length parameter, the JDBC driver throws an exception when the row is updated or inserted.
If the length of the stream is unknown, the length parameter may be set to -1 to indicate that the driver should accept the stream regardless of its length. With sqljdbc4.jar, we recommend that you use the JDBC 4.0 method setBinaryStream Method (java.lang.String, java.io.InputStream) when the application wants to update the column from a stream whose length is unknown.
setBinaryStream (SQLServerCallableStatement)
SQLServerCallableStatement Members
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign in