mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-04-25 06:02:13 +00:00
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