This topic demonstrates how to extract a file from a GZip archive to a destination folder. With Xceed’s FileSystem-based products, a file is a file: it does not matter if it is located on disk or in memory, etc.
FileSystem-based GZip is not currently available in Xceed's .NET Compact Framework products.
To extract items from a GZip archive, the following steps must be performed:
Retrieve a reference to a GZip archive using the GZipArchive class.
Retrieve a reference to a folder where the files will be extracted to using an AbstractFolder-derived class such as DiskFolder, MemoryFolder, IsolatedFolder, ZipArchive, FtpFolder, etc.
Call the CopyFilesTo method to copy the GZipped files to the destination folder.
This example demonstrates how to extract a GZipped file from a GZip archive to a folder located on disk.
VB.NET | Copy Code |
---|---|
|
C# | Copy Code |
---|---|
|
The main questions you should ask yourself when extracting items from a GZip archive are: