Blob: stream() method

Note: This feature is available in Web Workers.

The stream() method of the Blob interface returns a ReadableStream which upon reading returns the data contained within the Blob.

Syntax

js
stream()

Parameters

None.

Return value

A ReadableStream which, upon reading, returns the contents of the Blob.

Usage notes

With stream() and the returned ReadableStream, you gain several interesting capabilities:

Specifications

See also