- From: Ulrich-Matthias Schäfer <notifications@github.com>
- Date: Sat, 06 Apr 2019 00:23:13 -0700
- To: w3c/FileAPI <FileAPI@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Saturday, 6 April 2019 07:23:36 UTC
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