aspose file tools*
The moose likes Servlets and the fly likes How to zip a file? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "How to zip a file?" Watch "How to zip a file?" New topic
Author

How to zip a file?

kv ruby
Ranch Hand

Joined: Jul 23, 2009
Posts: 38
My requirement is to zip a file placed in my D:\folder and send it back to the user via out.write.
how can i do this in servlet?


Regards, ruby kv
rubyshiv.blogspot.com
mahesh shinde
Ranch Hand

Joined: Jul 24, 2009
Posts: 69

Very easy in java
You can use java.util.zip classes for creating a zip file
like ZipOutputStream also you can provide some CRC check to your zip file.
kv ruby
Ranch Hand

Joined: Jul 23, 2009
Posts: 38
mahesh shinde wrote:Very easy in java
You can use java.util.zip classes for creating a zip file
like ZipOutputStream also you can provide some CRC check to your zip file.



Thanks mahesh.
actualy client is a mobile and was not getting the response properly.
seems like device issue , its resolved.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to zip a file?