W3cubDocs

/Deno

Blob

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.

class Blob {
constructor(blobParts?: BlobPart[], options?: BlobPropertyBag);
readonly size: number;
readonly type: string;
arrayBuffer(): Promise<ArrayBuffer>;
slice(
start?: number,
end?: number,
contentType?: string,
): Blob;
stream(): ReadableStream<Uint8Array>;
text(): Promise<string>;
}

Constructors

new Blob(blobParts?: BlobPart[], options?: BlobPropertyBag)

Properties

size: number
type: string

Methods

arrayBuffer(): Promise<ArrayBuffer>
slice(start?: number, end?: number, contentType?: string): Blob
stream(): ReadableStream<Uint8Array>
text(): Promise<string>

© 2018–2021 the Deno authors
https://doc.deno.land/deno/stable/~/Blob