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.
z.CompressFile("myData.dat","myData.dat.Z");
// file-to-file uncompress
z.UncompressFile("myData.dat.Z","myData.dat");
// file-to-memory uncompress
byte [] uncompressedData = z.UncompressFileToMem("myData.dat.Z");
// memory-to-file compress
z.CompressMemToFile(uncompressedData,"myData.dat.Z");
// 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");