Re: [w3c/FileAPI] Add method to read file into user given Uint8Array (#83)

For me it is not clear how byob-streams will solve this problem.
It is not possible to get a stream from a file isnt it? As far as I understand the streaming api (https://streams.spec.whatwg.org/) there is no plan on creating a stream from a file-input.
The FileReader still is the only option to create a buffer from the file-input. Even if you slice the file into chunks and stream it via a byob-stream, you still need to copy the contents of the FileReader-Buffer over to the buffer from the byob-stream.
It would be far easier, to just pass the byob-buffer to `readAsArrayBuffer(file, buf)`.
The required changes for something like that should be very small!

Please enlighten me on this issue!


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/FileAPI/issues/83#issuecomment-480481670

Received on Saturday, 6 April 2019 07:23:36 UTC