Share via


CursorWindow.GetBlob(Int32, Int32) Method

Definition

Gets the value of the field at the specified row and column index as a byte array.

[Android.Runtime.Register("getBlob", "(II)[B", "GetGetBlob_IIHandler")]
public virtual byte[]? GetBlob (int row, int column);
[<Android.Runtime.Register("getBlob", "(II)[B", "GetGetBlob_IIHandler")>]
abstract member GetBlob : int * int -> byte[]
override this.GetBlob : int * int -> byte[]

Parameters

row
Int32

The zero-based row index.

column
Int32

The zero-based column index.

Returns

Byte[]

The value of the field as a byte array.

Attributes

Remarks

Gets the value of the field at the specified row and column index as a byte array.

The result is determined as follows: <ul> <li>If the field is of type Cursor#FIELD_TYPE_NULL, then the result is null.</li> <li>If the field is of type Cursor#FIELD_TYPE_BLOB, then the result is the blob value.</li> <li>If the field is of type Cursor#FIELD_TYPE_STRING, then the result is the array of bytes that make up the internal representation of the string value.</li> <li>If the field is of type Cursor#FIELD_TYPE_INTEGER or Cursor#FIELD_TYPE_FLOAT, then a SQLiteException is thrown.</li> </ul>

Java documentation for android.database.CursorWindow.getBlob(int, 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