--- title: "updateAsciiStream Method (java.io.InputStream) | Microsoft Docs" ms.custom: "" ms.date: "01/19/2017" ms.prod: sql ms.prod_service: connectivity ms.reviewer: "" ms.technology: connectivity ms.topic: conceptual ms.assetid: 1dcc3d4f-ae30-45c0-afad-a531358807af author: David-Engel ms.author: v-daenge --- # updateAsciiStream Method (int, java.io.InputStream) [!INCLUDE[Driver_JDBC_Download](../../../includes/driver_jdbc_download.md)] Updates the designated column with an ASCII stream value. ## Syntax ``` public void updateAsciiStream(int columnIndex, java.io.InputStream x) ``` #### Parameters *columnIndex* An **int** that indicates the column index. *x* An InputStream object. ## Exceptions [SQLServerException](../../../connect/jdbc/reference/sqlserverexception-class.md) ## Remarks 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. Using this method for the **image**, **text**, and **ntext**[!INCLUDE[ssNoVersion](../../../includes/ssnoversion-md.md)] data types might impact performance. ## See Also [updateAsciiStream Method (SQLServerResultSet)](../../../connect/jdbc/reference/updateasciistream-method-sqlserverresultset.md) [SQLServerResultSet Members](../../../connect/jdbc/reference/sqlserverresultset-members.md) [SQLServerResultSet Class](../../../connect/jdbc/reference/sqlserverresultset-class.md)