Methods

fromBase64String

static

fromBase64String(base64) returns firebase.firestore.Blob

Creates a new Blob from the given Base64 string, converting it to bytes.

Parameter

base64

string

The Base64 string used to create the Blob object.

Returns

non-null firebase.firestore.Blob The Blob created from the Base64 string.

fromUint8Array

static

fromUint8Array(array) returns firebase.firestore.Blob

Creates a new Blob from the given Uint8Array.

Parameter

array

Uint8Array

The Uint8Array used to create the Blob object.

Value must not be null.

Returns

non-null firebase.firestore.Blob The Blob created from the Uint8Array.

isEqual

isEqual(other) returns boolean

Returns 'true' if this Blob is equal to the provided one.

Parameter

other

firebase.firestore.Blob

The Blob to compare against.

Value must not be null.

Returns

boolean 'true' if this Blob is equal to the provided one.

toBase64

toBase64() returns string

Returns the bytes of a Blob as a Base64-encoded string.

Returns

string The Base64-encoded string created from the Blob object.

toUint8Array

toUint8Array() returns Uint8Array

Returns the bytes of a Blob in a new Uint8Array.

Returns

non-null Uint8Array The Uint8Array created from the Blob object.