retrohacker / blob-to-stream

Convert a blob to a stream!
MIT License
4 stars 1 forks source link

don't depend on blob-to-buffer #13

Open jimmywarting opened 3 years ago

jimmywarting commented 3 years ago

if you want to read large data like 2gb+ then you need to slice the blob into chunks and emit each piece. a better option would be to use something like

toNodeStream(blob.stream())
toNodeStream(new Response(blob).body)