Freigeben über


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

Updates the designated column name with an ASCII stream value given the column name.

public void updateAsciiStream(java.lang.String columnName,
                              java.io.InputStream x,
                              int length)

Parameter

columnName

A String that contains the column name.

x

An InputStream object.

length

An int that indicates the length of the stream.

Ausnahmen

SQLServerException

Hinweise

This updateAsciiStream method is specified by the updateAsciiStream method in the java.sql.ResultSet interface.

This method passes ASCII characters (bytes) from an InputStream object to convertible character columns, which are the ASCII range [0x00 – 0x7F] of Unicode, and 874, 932, 936, 949, 950, and 1250 through 1258 code pages. This method performs a conversion to the destination collation page. Trying to update an unconvertible destination column will cause an exception to be thrown. For binary columns, raw bytes are passed.

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

updateAsciiStream Method (SQLServerResultSet)
SQLServerResultSet Methods
SQLServerResultSet Members