Retrieving ByteArray from encrypted zip file
843811Jul 29 2010 — edited Jul 29 2010Hello 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