Miraplacid Scripting Components Manual

 
 

Miraplacid MSCGZip 2.0

MSCGZip is Gzip compression/decompression component. It allows you compress and decompress data and files using standard well-known Gzip data compression engine.

Component creation

To create component, use following constructions
  • JScript: var obj = Server.CreateObject("Miraplacid.MSCGZip");
  • VBScript: set obj = Server.CreateObject("Miraplacid.MSCGZip")

Note: Component designed for Apartment threading model. Therefore, the best scope of their using is ASP page level scope.
Using components of version 2.0 in Application and Session scopes may cause problems with your ASP Server (IIS or Chili) productivity.
To learn more about ASP execution scopes, see your ASP Server manual.

Important Note

MSCBlob Component required for using methods Compress & Decompress. Files could be compressed/decompressed inpedendently from MSCBlob.

Object reference


Method Parameters Return Value Description
Compress MSCBlob src MSCBlob Compresses data from the src and returns result via new MSCBlob object
Decompress MSCBlob src MSCBlob Decompresses data from the src and returns result via new MSCBlob object
CompressFile String src,
String dst
None Compresses data from file named src and saves compressed data to the file named dst
DecompressFile String src,
String src
None Decompresses data from file named src and saves decompressed data to the file named dst

 
 
Technical Support   Copyright © 2001 - 2005 by Miraplacid