Aracılığıyla paylaş


IBlob.GetBytes(Int64, Int32) Method

Definition

Retrieves all or part of the BLOB value that this Blob object represents, as an array of bytes.

[Android.Runtime.Register("getBytes", "(JI)[B", "GetGetBytes_JIHandler:Java.Sql.IBlobInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public byte[]? GetBytes (long pos, int length);
[<Android.Runtime.Register("getBytes", "(JI)[B", "GetGetBytes_JIHandler:Java.Sql.IBlobInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetBytes : int64 * int -> byte[]

Parameters

pos
Int64

the ordinal position of the first byte in the BLOB value to be extracted; the first byte is at position 1

length
Int32

the number of consecutive bytes to be copied; the value for length must be 0 or greater

Returns

Byte[]

a byte array containing up to length consecutive bytes from the BLOB value designated by this Blob object, starting with the byte at position pos

Attributes

Exceptions

if an error occurs accessing the Blob.

Remarks

Retrieves all or part of the BLOB value that this Blob object represents, as an array of bytes. This byte array contains up to length consecutive bytes starting at position pos.

Added in 1.2.

Java documentation for java.sql.Blob.getBytes(long, int).

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