How to zip a file in Java

Many times, for storage or transmission of files, we might be required to zip or compress a file. Compressing a file can reduce storage requirement and also transmission time and bandwidth.

Java provides a core library `` to make zipping and unzipping of files easy.

Below code shows how to create create a zip file from a single file.


Post a Comment