This component gives an ASP or other script the ability to build a zip file from files on the server. The resulting archive can be saved on the server or streamed directly to the browser. There is support for creating spanned archives so large files can be split into smaller parts for downloading.
There is also functionality for reading and unzipping files from a zip archive. We must stress that not all compression types are supported, but most available zip archives are readable. Files can be read from disk, remote URL or variant array and they can be extracted to disk or to variant array for streaming or saving into a database.
Additional functions allow for the controlled download of binary files from the server. This is the same functionality as in our csFileDownload component. Files which are not web shared can be downloaded and user verification and logging can be performed by the script before and after the download.
Files can be retrieved from a remote web server using the HTTP functions. These files can be streamed to the browser or saved to disk on the server.
There are also some useful file utilities and an access code generator. Read the Online Manual for a full description of the component properties and methods.
This component is a COM object and can be created by most Windows development environments that support COM and ActiveX. It must be registered on the server before it can be used. On a 64 bit system it must be added to a COM+ Application in component services. If it is to be used in ASP.NET, we recommend creating an Interop Assembly so it can use early binding for more efficiency. Some of the streaming functions are restricted to classic ASP but much of the functionality can be used in different environments. The instruction manual describes use in Cold Fusion and ASP.NET as well as ASP.
csASPZipFile can be used with VBScript and WSH scripts which means it can be used within an automated scheduled task. It can be used alongside our csFTPQuick component to compress and copy files to another server as part of a backup.