I am having my app to export the db table / rows as CSV file. But Currently I need to tweak a bit of the implementation.
I am using opencsv library (CSV writer/Reader) to export and import csv file.
After i create the csv file, I need to again zip it programatiicaly and create the .zip file to be exported
After that I need to create a password for the zip file.
Please help to know how to create a zip file from the csv file contents, on the fly.
Also how can i set a password for the zip file created.
Kindly help me to achieve point 2 and 3 .