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 `java.util.zip` to make zipping and unzipping of files easy.
Below code shows how to create create a zip file from a single file.
0 comments:
Post a Comment