Zip Component, Email Component, Encryption Component ActiveX Control for Zip Compression .NET Components for ASP.NET
ActiveX and .NET Components for Zip Compression, Encryption, Email, XML, S/MIME, HTML Email, Character Encoding, Digital Certificates, FTP, and more ASP Email ActiveX Component

Index of Chilkat Blog Posts

February 3, 2006

Chilkat UNIX Compress (.Z file format) examples

Here’s a quick synopsis of the .Z functionality in Chilkat.NET.
(The API is virtually identical to that for Chilkat.GZip)

Chilkat.UnixCompress z = new Chilkat.UnixCompress();
z.UnlockComponent("zip unlock code"); // Use your Chilkat Zip unlock code here…

// file-to-file compression.

// file-to-file uncompress

// file-to-memory uncompress
byte [] uncompressedData = z.UncompressFileToMem("myData.dat.Z");

// memory-to-file compress

// memory-to-memory compression
byte [] compressedData = z.CompressMemory(uncompressedData);

// memory-to-memory uncompress
byte [] uncompressedData2 = z.UncompressMemory(compressedData);

// memory-to-file uncompress
z.UncompressMemToFile(compressedData ,"myData.dat");

// file-to-memory compress
byte [] compressedData2 = z.CompressFileToMem("myData.dat");

Privacy Statement. Copyright 2000-2011 Chilkat Software, Inc. All rights reserved.
Send feedback to

Components for Microsoft Windows XP, 2000, 2003 Server, Vista, Windows 7, and Windows 95/98/NT4.