PreparedStatement.setAsciiStream
Interface Overview | Interface Members |
This Package |
All Packages
public abstract void setAsciiStream( int parameterIndex,
InputStream x,
int length ) throws SQLException
Parameters
- parameterIndex
- the first parameter is 1, the second is 2, ...
- x
- the java input stream which contains the ASCII parameter value
- length
- the number of bytes in the stream
Description
When a very large ASCII value is input to a LONGVARCHAR
parameter, it may be more practical to send it via a
java.io.InputStream. JDBC will read the data from the stream
as needed, until it reaches end-of-file. The JDBC driver will
do any necessary conversion from ASCII to the database char format.
Note: This stream object can either be a standard
Java stream object or your own subclass that implements the
standard interface.
Exceptions
SQLException
if a database-access error occurs.