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.