aspose file tools*
The moose likes Java in General and the fly likes making zip file at runtime Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "making zip file at runtime" Watch "making zip file at runtime" New topic
Author

making zip file at runtime

Kavita Ghia
Ranch Hand

Joined: Oct 10, 2000
Posts: 91
Hello Friends,
I have two files one is with extension ".exe" and other is with extension ".txt" i.e
1) file1.exe
2) file2.txt
I want to make this file into zip format. This will be achieve during run-time.I have written one "Servlet" in which i'm using ZipEntry class.But i'm unable to do so.
Thanks in advance,
Kavita.

Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
You say you are unable to use the ZipEntry class - why not? what is wrong?


Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
Carl Trusiak
Sheriff

Joined: Jun 13, 2000
Posts: 3340
Here is a class that I use to zip all the log files in a directory

hope this helps


I Hope This Helps
Carl Trusiak, SCJP2, SCWCD
Kavita Ghia
Ranch Hand

Joined: Oct 10, 2000
Posts: 91
Thanks Carl your code has helped.
 
jQuery in Action, 2nd edition
 
subject: making zip file at runtime
 
Similar Threads
Checking File Type
struts2 There is a bug in FileUploadInterceptor (FileContentType).
Zip file creation with directory suppression through an API
Web logic server file direct download
Jboss Clustering over TCP