Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java API to attach a password for the generated zip file

 
Radhika R Bansal
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

1) Using java API we need to zip multiple files and create a .zip file.
2) Using java API attach a password for the generated zip file.

We are able to generate the zip file using java.util API but couldn't find a way to attach password.
Can someone pls help me with this. Thanks in advance
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no support for this in standard class libraries, but a quick Google search finds this article, which suggests two ways how to do it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic