Jump to top

Blob

interface

An immutable object representing an array of bytes.

Methods

isEqual

</>

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

isEqual(other: Blob): boolean;

toBase64

</>

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

toBase64(): string;

toUint8Array

</>

Returns the bytes of a Blob in a new Uint8Array.

toUint8Array(): Uint8Array;

fromBase64String

</>

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

fromBase64String(base64: string): Blob;

fromUint8Array

</>

Creates a new Blob from the given Uint8Array.

fromUint8Array(array: Uint8Array): Blob;