Share via


getBinaryStream Method (long, long)

Returns an input stream object that contains a partial BLOB value by using the specified starting position and the length.

Note

This feature is introduced starting with the Microsoft SQL Server JDBC Driver version 2.0.

public java.io.InputStream getBinaryStream(long pos, long length)

Parameters

pos

The offset to the first byte of the partial value to be retrieved.

length

The length in bytes of the partial value to be retrieved.

Return Value

An input stream that contains the BLOB data.

Exceptions

SQLServerException

Remarks

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

See Also

Reference

SQLServerBlob Class

Concepts

SQLServerBlob Methods
SQLServerBlob Members