Create ZIP File :: Create ZIP file archives and serve for download

Posted by on 27 January 2009

This class can create ZIP archives from lists of files. The class provides means to add individual files or whole directories to the list of files packed into a ZIP archive.  The class can generate the packed archive as a string value.

The class can also output the necessary request response headers to serve the generated ZIP archive for download.  The supplied example demonstrates how to use the class to store the ZIP archive in a file, serve it for download and delete the file after it is served.

Demo:

Download:

34 Responses to Create ZIP File :: Create ZIP file archives and serve for download

  1. narnianguy

    error

Leave a Reply