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.
This program uses Commons IO – IOUtils library to copy files.
Tech Tips and Tricks
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.
This program uses Commons IO – IOUtils library to copy files.
Hiii,
Thanks for the source code.
Regards
Ramesh