Appends the given array of bytes to the end of the BLOB value that this Blob object represents and returns the number of bytes written.
Arguments
Argument | Description |
---|---|
pos | Reserved for future use. |
bytes | The array of bytes to append to the BLOB value that this Blob object represents. |
Return Value
If successful, setBytes() returns the number of bytes written.
Exceptions
IF … | THEN setBytes() throws an SQLException to … | |||
---|---|---|---|---|
there is an error accessing the BLOB value | indicate a failure while writing data into a LOB, setting the SQLException fields as follows:
|
|||
the bytes argument is null -or- the value of the pos argument is less than 1 |
indicate a call to a Blob or Clob method with invalid parameters, setting the SQLException fields as follows:
|
|||
the JVM cannot allocate enough memory for the method to write the bytes to the Blob | indicate that available JVM heap memory has run out, setting the SQLException fields as follows:
|