Adds three new methods to the Blob interface to perform read operations: text(), arrayBuffer(), and stream().

Motivation

Right now, developers can read a blob with a nicely promisified and/or streamified API by do something like: new Response(my_blob).body .arrayBuffer(), .text() etc The Response wrapping trick feels like a hack, and especially as long as FileReader exists, isn't very discoverable.

Documentation

Specification

Specification link


Specification being incubated in a Community Group

Status in Chromium

Blink>Storage>FileAPI


Enabled by default (tracking bug)

Consensus & Standardization

After a feature ships in Chrome, the values listed here are not guaranteed to be up to date.

  • Positive
  • No signal
  • No signal
  • Positive

Owners

Search tags

Blob, stream, arraybuffer, read,

Last updated on 2020-11-09