--- title: "getBinaryStream Method () | Microsoft Docs" ms.custom: "" ms.date: "01/19/2017" ms.prod: sql ms.prod_service: connectivity ms.reviewer: "" ms.technology: connectivity ms.topic: conceptual apiname: - "SQLServerBlob.getBinaryStream" apilocation: - "sqljdbc.jar" apitype: "Assembly" ms.assetid: 0c8f7741-daba-4c04-adc0-8d76345a899a author: David-Engel ms.author: v-daenge --- # getBinaryStream Method () [!INCLUDE[Driver_JDBC_Download](../../../includes/driver_jdbc_download.md)] Returns an input stream to read data from the BLOB. ## Syntax ``` public java.io.InputStream getBinaryStream() ``` ## Return Value An input stream that contains the BLOB data. ## Exceptions [SQLServerException](../../../connect/jdbc/reference/sqlserverexception-class.md) ## Remarks This getBinaryStream method is specified by the getBinaryStream method in the java.sql.Blob interface. ## See Also [SQLServerBlob Methods](../../../connect/jdbc/reference/sqlserverblob-methods.md) [SQLServerBlob Members](../../../connect/jdbc/reference/sqlserverblob-members.md) [SQLServerBlob Class](../../../connect/jdbc/reference/sqlserverblob-class.md)