--- title: "getCharacterStream Method (long, long) (SQLServerNClob) | 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: 5a8028bc-c877-4668-b662-0746d462040e author: David-Engel ms.author: v-daenge --- # getCharacterStream Method (long, long) (SQLServerNClob) [!INCLUDE[Driver_JDBC_Download](../../../includes/driver_jdbc_download.md)] Retrieves the **NCLOB** data as a **Reader** object or as a stream of characters with a specified position and length. ## Syntax ``` public java.io.Reader getCharacterStream(long pos, long length) ``` #### Parameters *pos* A **long** that indicates the offset to the first character of the partial value to be retrieved. *length* A **long** that indicates the length in characters of the partial value to be retrieved. ## Return Value A Reader object that contains the **NCLOB** data. ## Exceptions [SQLServerException](../../../connect/jdbc/reference/sqlserverexception-class.md) ## Remarks This getCharacterStream method is specified by the getCharacterStream method in the java.sql.NClob interface. ## See Also [getCharacterStream Method (SQLServerNClob)](../../../connect/jdbc/reference/getcharacterstream-method-sqlservernclob.md) [SQLServerNClob Methods](../../../connect/jdbc/reference/sqlservernclob-methods.md) [SQLServerNClob Members](../../../connect/jdbc/reference/sqlservernclob-members.md) [SQLServerNClob Class](../../../connect/jdbc/reference/sqlservernclob-class.md)