javaapachecompressionapache-commons-compress

Apache Common Compress - Split Zip file


I have successfully zip or unzip file by using Apache Common Compress library. Now the problem is, the compressed file needs to be send via FTP/email and 10 MB is the maximum limit of the file to be sent.

  1. So I need know the way to generate file(s) with custom size?
  2. How can I uncompress the file(s)?

Thanks.


Solution

  • Must you use Apache Common Compress? Otherwise this answer might be interesting for you: how to create java zip archives with a max file size limit