• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Zip UnZip files and folders in spring

 
sadanand munswamy
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ranchers,
I am newbie to spring, I have to zip/unzip files/folders using spring framework, I do not want to
use java zip api. Any help will be deeply appreciated.
 
Tim Moores
Bartender
Posts: 2895
46
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I do not want to use java zip api.

Why not? Trying to avoid the standard API is often a questionable approach. Also, Spring (like all frameworks I'm familiar with) has no facilities for this; why would it, given the existence java.util.zip?
 
Manish Sridharan
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Quite agree with Tim, you should use Java API to do the zip/unzip function and perhaps configure that as a bean in spring.
 
Bill Gorder
Bartender
Posts: 1682
7
Android IntelliJ IDE Linux Mac OS X Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As was already stated Spring does not have any libraries I know of for this. However if you have some sort of issue with using java.util.zip I have used the http://commons.apache.org/compress/ libraries before and they did a fine job as well.

Thanks,
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic