Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Is it possible to use this to zip data from an input stream to an output stream without storing the entire completed zip nor all the source files in memory at any point? #18

Open
GNUGradyn opened this issue Aug 15, 2022 · 0 comments

Comments

@GNUGradyn
Copy link

GNUGradyn commented Aug 15, 2022

Hi. I'm writing an asp.net program that needs to be able to create a zip of some files from azure blob storage and send them to the user for download. The system could potentially be creating many of these zips at once, so either an unreasonable amount of temporary storage or an unreasonable amount of memory would be required on my kubernetes pods for this to be possible the "normal" way of using MemoryStreams to store the input/output and then stream the output to the downloader.

My idea was to stream the data from azure storage, into this library, and then directly out to the users download stream. This way, neither the source files nor the output zip would be 100% in memory at once. It would essentially be creating the zip in real time during the download and disposing data its done with as it goes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant