Freigeben über


IBlob.GetBinaryStream(Int64, Int64) Method

Definition

Returns an InputStream object that contains a partial Blob value, starting with the byte specified by pos, which is length bytes in length.

[Android.Runtime.Register("getBinaryStream", "(JJ)Ljava/io/InputStream;", "GetGetBinaryStream_JJHandler:Java.Sql.IBlobInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public System.IO.Stream? GetBinaryStream (long pos, long length);
[<Android.Runtime.Register("getBinaryStream", "(JJ)Ljava/io/InputStream;", "GetGetBinaryStream_JJHandler:Java.Sql.IBlobInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetBinaryStream : int64 * int64 -> System.IO.Stream

Parameters

pos
Int64

the offset to the first byte of the partial value to be retrieved. The first byte in the Blob is at position 1

length
Int64

the length in bytes of the partial value to be retrieved

Returns

InputStream through which the partial Blob value can be read.

Attributes

Exceptions

if an error occurs accessing the Blob.

Remarks

Returns an InputStream object that contains a partial Blob value, starting with the byte specified by pos, which is length bytes in length.

Added in 1.6.

Java documentation for java.sql.Blob.getBinaryStream(long, long).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to