zip « Download « JSP-Servlet Q&A





1. Downloading a zip file returns a corrupt zip using servlets    stackoverflow.com

I am trying to create a zip file using servlets but it returns me a corrupt zip file , here is the code for that in zipcontents function i am creating ...

2. downloading a zip file in JSP    coderanch.com

No matter what language you r using, download is the same. Just point to your in tag of html and as the user clicks it, It is downloaded. The auto start version just sends request to a file path and the file download window pops up automatically. For the upload version, I will ask the reliablity of the claim ...

3. download zip in jsp    coderanch.com

6. How to download Zip file in Servlet?    coderanch.com

7. jsp code to download zip file by clicking the link    forums.oracle.com

String path=request.getParameter("path"); response.setContentType("application/zip"); //response.setHeader("Content-Disposition", "attachment; filename=\"" + path + "\""); byte[] _buf = new byte[1024]; //zos is used to write files in zip ZipOutputStream zos = null; //zip is used to read files ZipInputStream zis = null; boolean bsuccess = true; zos = new ZipOutputStream(new java.io.FileOutputStream("D:/temp/SSO.zip")); zis = new ZipInputStream(new java.io.FileInputStream(path)); ZipEntry ze = null;