Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

ZipFileSystem, add a file that is already compressed

Using ZipFileSystem or ZipOutputStream, is there a way to add a file that is already compressed without trying to compress again?

We need to include a large zip file (around 700MB) into another zip. The process works just fine when the file to include is not compressed, even if it is a large file (1GB), but when we try to add a file that is already compressed we are running into OOM errors. Is there a way to skip compression for files already compressed?

Comments
Post Details
Added on Sep 9 2024
0 comments
43 views