str4d 6ba8c6c2ec
Add Blob.stream() method (#2140)
This enables a ReadableStream to be obtained for a file, which can then
be handled with e.g. https://github.com/MattiasBuelens/wasm-streams

    let file: web_sys::File = ...;
    let stream = wasm_streams::readable::ReadableStream::from(
        file.stream()
            .unchecked_into::<wasm_streams::readable::sys::ReadableStream>(),
    );

WebIDL source: https://w3c.github.io/FileAPI/#blob-section
Docs: https://developer.mozilla.org/en-US/docs/Web/API/Blob/stream
2020-05-18 06:59:16 -05:00
..
2018-10-01 12:24:37 -07:00
2020-05-18 06:59:16 -05:00
2018-07-29 16:07:19 -07:00
2018-07-29 16:07:19 -07:00
2018-07-29 16:07:19 -07:00
2019-09-12 16:49:03 -05:00
2018-07-29 16:07:19 -07:00
2018-07-29 16:07:19 -07:00
2018-07-26 10:21:04 -07:00
2018-09-17 13:25:10 -07:00
2018-07-29 16:07:19 -07:00
2018-07-29 16:07:19 -07:00
2019-09-12 16:49:03 -05:00
2018-07-29 16:07:19 -07:00
2018-08-10 00:52:12 +03:00