Toms Online Notebook Sharing my stuff.

Entries tagged [servlet]

Zip Download Servlet

by tgutwin

Posted on Sunday Oct 16, 2016 at 12:33PM in Programming

Java LogoI needed a simple Java Servlet to zip a directory of files (or a single file) with parameters to dynamically specify what to zip up.

It does NOT create a temp file; it zips and streams the output directly to the client.
its called ZipFiles.

Here it is...

Read More