File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to zip a file?

 
kv ruby
Ranch Hand
Posts: 38
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
mahesh shinde
Ranch Hand
Posts: 69
Eclipse IDE Firefox Browser Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 38
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic