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

Populating a zip file over time / one by one without copying the archive over and over again #126

Closed
mar1ged opened this issue Sep 18, 2019 · 2 comments

Comments

@mar1ged
Copy link

mar1ged commented Sep 18, 2019

I have a question that is somehow related to my previous issue.

My current task is to create a quite big zip file. The overall process of creating the zip file will take hours, from time to time I will have to add a new file. At the end I will "close" the zip file.

I want to avoid copying the current zip to a new zip when adding the new file.
And I want to avoid buffering the files in ZipEntrySources or even on disk.

Is this possible (with your API) ?

@toomasr
Copy link
Contributor

toomasr commented Sep 18, 2019

I believe we don't have anything like that. The underlying API does have support for that since Java 7 though.

Best bet right now would be https://stackoverflow.com/a/17504151/161575

@mar1ged
Copy link
Author

mar1ged commented Sep 18, 2019

Thanks a lot. I would like to use the added value of your API and use the same library for all ZIP file handling (I need to do more than what I described earlier). So I think I will investigate alternatives.

@mar1ged mar1ged closed this as completed Sep 18, 2019
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

2 participants