w3c / FileAPI

File API
https://w3c.github.io/FileAPI/
Other
104 stars 44 forks source link

Byte stream support for `stream()`? #186

Closed saschanaz closed 1 year ago

saschanaz commented 1 year ago

This succeeds on Firefox but fails on Chrome:

new Blob([1,2]).stream().getReader({mode: 'byob'})

But the spec does not actually sets up the stream as a byte stream. It makes sense for file related APIs to support byte stream reader, should the spec change?

See also https://github.com/whatwg/fetch/issues/267 for Fetch.