Simpler reading methods for Blob interface

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

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

Editor's draft

Status in Chromium

Blink>Storage>FileAPI


Enabled by default (tracking bug) in:

  • Chrome for desktop release 76
  • Chrome for Android release 76
  • Android WebView release 76

Consensus & Standardization

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

  • Public support
  • No public signals
  • No public signals
  • Positive

Owners

Last updated on 2019-04-26