Interface Blob
interface Blob {
size: number;
type: string;
arrayBuffer(): Promise<ArrayBuffer>;
bytes(): Promise<Uint8Array>;
slice(start?: number, end?: number, contentType?: string): Blob;
stream(): ReadableStream<Uint8Array>;
text(): Promise<string>;
}
size: number;
type: string;
arrayBuffer(): Promise<ArrayBuffer>;
bytes(): Promise<Uint8Array>;
slice(start?: number, end?: number, contentType?: string): Blob;
stream(): ReadableStream<Uint8Array>;
text(): Promise<string>;
}
Hierarchy
- Blob (View Summary)
Methods
arrayBuffer
- arrayBuffer(): Promise<ArrayBuffer>
Returns Promise<ArrayBuffer>
bytes
- bytes(): Promise<Uint8Array>
Returns Promise<Uint8Array>
slice
stream
- stream(): ReadableStream<Uint8Array>
Returns ReadableStream<Uint8Array>
A file-like object of immutable, raw data. Blobs represent data that isn't necessarily in a JavaScript-native format. The File interface is based on Blob, inheriting blob functionality and expanding it to support files on the user's system.
MDN Reference