core-ktx / androidx.database / android.database.Cursor / getBlobOrNull

getBlobOrNull

inline fun Cursor.getBlobOrNull(index: Int): ByteArray?

Returns the value of the requested column as a nullable byte array.

The result and whether this method throws an exception when the column type is not a blob type is implementation-defined.

See Also

Cursor.isNull

Cursor.getBlob

inline fun Cursor.getBlobOrNull(columnName: String): ByteArray?

Returns the value of the requested column as a nullable byte array.

The result and whether this method throws an exception when the column type is not a blob type is implementation-defined.

See Also

Cursor.getColumnIndexOrThrow

Cursor.isNull

Cursor.getBlob