--- title: "setBytes Method (SQLServerBlob) | 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.setBytes" apilocation: - "sqljdbc.jar" apitype: "Assembly" ms.assetid: cd193265-3a65-4b1e-86ec-7818c3c0c1e2 author: David-Engel ms.author: v-daenge --- # setBytes Method (SQLServerBlob) [!INCLUDE[Driver_JDBC_Download](../../../includes/driver_jdbc_download.md)] Writes the given array of bytes into the BLOB starting at the given position, and then returns the number of bytes written. ## Overload List |Name|Description| |----------|-----------------| |[setBytes (long, byte[])](../../../connect/jdbc/reference/setbytes-method-long-byte.md)|Writes the given array of bytes into the BLOB starting at the given position, and then returns the number of bytes written.| |[setBytes (long, byte[], int, int)](../../../connect/jdbc/reference/setbytes-method-long-byte-int-int.md)|Writes all or part of the given array of bytes into the BLOB starting at the given position, offset, and length, and then returns the number of bytes written.| ## 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)