how to download zip files using java?
['byte[] zip = // your zip file is defined here.', 'response. setContentType("application/zip");', 'response. setHeader("Content-Disposition", "attachment; filename=output.zip");', 'ServletOutputStream sos = response. getOutputStream();', 'sos. write(zip);', 'sos. flush();']