Big Files - How Compress and Decompress #498

Open
opened 2026-01-29 20:44:52 +00:00 by claunia · 0 comments
Owner

Originally created by @FernandoBanhos on GitHub (Mar 23, 2024).

Is there any way to read a large file, and compress it in parts, through stream reading, like small buffers?
There is the BrotliEncoderCompressStream BrotliDecoderDecompressStream function, as far as I understand, I have to capture the entire contents of the file and instantiate it in memory to be able to compress or decompress it. So that at the end you can get the result and save it in another large file

Thanks!

Originally created by @FernandoBanhos on GitHub (Mar 23, 2024). Is there any way to read a large file, and compress it in parts, through stream reading, like small buffers? There is the BrotliEncoderCompressStream BrotliDecoderDecompressStream function, as far as I understand, I have to capture the entire contents of the file and instantiate it in memory to be able to compress or decompress it. So that at the end you can get the result and save it in another large file Thanks!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/brotli#498