Skip to content
Discussion options

You must be logged in to vote

If you're using ZIP streams you don't even need to do this, you can save memory by not accumulating into a blob and instead piping to streamsaver. You can do the following:

zipReadableStream.pipeTo(streamSaver.createWriteStream('filename.zip'))

I've tested this on multi-gigabyte files, works like a charm with very low memory usage.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@hrishikesh-k
Comment options

@101arrowz
Comment options

@hrishikesh-k
Comment options

Answer selected by hrishikesh-k
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants