Hi Suraj, You can use the java.util.zip package to compress/decompress ZIP and GZIP packages You can add your file to a ZIP package using the ZipOutputStream class Please see http://java.sun.com/developer/technicalArticles/Programming/compression/
If you want to use a particular compression algorithm (like RAR, TAR) you should look for its Java implementation or implement it yourself! -- Satish Vellanki Fred Allen - "The first time I sang in the church choir; two hundred people changed their religion." On Sat, Mar 21, 2009 at 10:02 AM, suraj gururaj <[email protected]>wrote: > I am tryin to code in java of how to compress a given file of any > format..so can u plz suggest me necessary steps n utilities available for me > to code..? [Non-text portions of this message have been removed]

