Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/deno/ext/web/lib.deno_web.d.ts>Blob

A modern runtime for JavaScript and TypeScript.
Go to Latest
interface Blob
import { type Blob } from "https://deno.land/x/deno@v1.38.1/ext/web/lib.deno_web.d.ts";

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.

Properties

readonly
size: number
readonly
type: string

Methods

arrayBuffer(): Promise<ArrayBuffer>
slice(
start?: number,
end?: number,
contentType?: string,
): Blob
stream(): ReadableStream<Uint8Array>
text(): Promise<string>
variable Blob
import { Blob } from "https://deno.land/x/deno@v1.38.1/ext/web/lib.deno_web.d.ts";

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.

type

{ readonly prototype: Blob; new (blobParts?: BlobPart[], options?: BlobPropertyBag): Blob; }