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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Retrieving ByteArray from encrypted zip file" Watch "Retrieving ByteArray from encrypted zip file" New topic
Author

Retrieving ByteArray from encrypted zip file

Joshi Sujit
Greenhorn

Joined: Jul 29, 2010
Posts: 6
Hello everyone,

I am new this forum.

I have to retrieve the bytearray from encrypted zip file. I am using bouncycastle and de.idyl.crypto.zip utility to create the encrypted zip file.
With the help of these utilities i am able to create a encrypted zip file into some temporary location.

Now i wanted to read the encrypted zip file and get the bytearray so that i can send this bytearray to my response object. And user will see the option to save the response bytearray to his location. when user save the response bytearray as a zip file he should be prompted to enter the password when he try to open the zip file.

Currently with lots of googling i am getting the bytearray in response but when i opt the user to save it in a location and try to open it, it is giving me file corrupted message.

I am using flex for UI.

Please help me on this.

Thanks and Regards,
Sujit Joshi
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Without more information it's impossible to help. I'd assume the zip file you're creating is malformed.
Joshi Sujit
Greenhorn

Joined: Jul 29, 2010
Posts: 6
What information is required. Please do let me know i will post it accordingly :-(
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Retrieving ByteArray from encrypted zip file