다음을 통해 공유


getBytes Method (SQLServerBlob)

Gets the BLOB data as an array of bytes.

public byte[] getBytes(long pos,
                       int length)

매개 변수

pos

The starting position, starting at 1 (not 0).

length

The length of the data to get.

반환 값

A byte array containing the requested data.

예외

SQLServerException

주의

This getBytes method is specified by the getBytes method in the java.sql.Blob interface.

If you have a null or zero length BLOB, and try to get exactly zero bytes at position 1, an empty byte array is returned (byte array of length 0).

If you have a null or zero length BLOB, and try to get any length of bytes at a position other than 1, a position exception will be thrown.

참고

참조

SQLServerBlob Class

개념

SQLServerBlob Methods
SQLServerBlob Members