Please can anybody send me a sample example for downloading the zip files? I was tried out so many solutions but in tomcat server, it was showing as the file does not exists. Please send me a sample example. Advance Thanks........
The easiest way of downloading would be to put the file in a publicly accessible directory in the web hierarchy, and then put a link to it on a web page. Is that what you're doing? Or are you looking for a way to stream the ZIP file to the browser using a servlet?
The easy way out is wat our friend mentioned above. You can host all the zip files in a location and create anchour tags in the HTMLs. Another way is to send the contents of the ZIP file as a binary stream as the output of the servlet. In this case remeber to set the content type appropriately and the rest.. the client browser will take care.