- parameterIndex
- the parameter number index, where the first parameter has index 1.
- theInputStream
- the ASCII InputStream carrying the data to which the parameter at parameterIndex is set.
- length
- the number of bytes in the InputStream to copy to the parameter.
Type Reason Java.Sql.SQLException if a database error happens.
Sets the value of a specified parameter to the content of a supplied InputStream, which has a specified number of bytes.
This is a good method for setting an SQL LONGVARCHAR parameter where the length of the data is large. Data is read from the InputStream until end-of-file is reached or the specified number of bytes is copied.