Skip to Main Content

Java Security

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Retrieving ByteArray from encrypted zip file

843811Jul 29 2010 — edited Jul 29 2010
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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 26 2010
Added on Jul 29 2010
2 comments
165 views