How to Zip a folder in Java

September 18, 2007 · Posted in java 

Using the in-built zip function of java, attached is a sample code to copy a folder and all its sub-folders into a zip file.

Java Program to Zip a folder

This program uses Commons IO – IOUtils library to copy files.

Comments

One Response to “How to Zip a folder in Java”

  1. Ramesh on February 6th, 2008 7:21 AM

    Hiii,
    Thanks for the source code.

    Regards
    Ramesh

Leave a Reply