Damir
Damir

Reputation: 56249

Create .gz file in Java which contain couple files

How to compress in Java several files in one .gz file ?

Upvotes: 3

Views: 1666

Answers (1)

Michał Niklas
Michał Niklas

Reputation: 54332

You must somehow join them before gzipping. Gzip can compress only one file, so most frequent solution is to tar files first and them gzip newly created tar.

Upvotes: 4

Related Questions