---
product: Chilkat
product_version: 11.7.0
language: asp
language_label: Classic ASP
class: Gzip
license: bundle
deprecated: false
reference_html: https://www.chilkatsoft.com/refdoc/asp_GzipRef.html
---
# Chilkat Gzip — Classic ASP — v11.7.0

> Chilkat 11.7.0 · language=asp · class=Gzip
> Other versions: replace `11.7.0` in this URL. Other languages: `https://www.chilkatsoft.com/ai-docs/v/11.7.0/<lang>/classes/Gzip.md`.
> Language-wide rules (install, unlock, error model, strings/bytes): `https://www.chilkatsoft.com/ai-docs/v/11.7.0/asp/guide.md`.

## Purpose

**Compress, decompress, inspect, and convert GZIP data in files or memory.**

`Chilkat.Gzip` provides GZIP compression and decompression for file-based and in-memory workflows. It can compress and uncompress files, strings, byte arrays, `BinData`, and encoded data such as Base64 or hex. It also supports `.tar.gz` extraction, gzip metadata such as original filename, timestamp, and comments, and inspection of GZIP header information without fully expanding the compressed data.

**File compression**

Compress files to `.gz`, uncompress `.gz` files, and write decompressed output directly to disk.

**Memory-based data**

Work with byte arrays and `Chilkat.BinData` for applications that need compression or decompression without temporary files.

**String workflows**

Compress and uncompress strings with explicit charset handling for text data that must round-trip correctly.

**Encoded GZIP data**

Handle GZIP data represented as Base64, hex, or other supported encoded forms when binary data must be carried as text.

**GZIP metadata**

Set or inspect metadata such as original filename, modified time, comments, and extra data stored in the GZIP header.

**Tar-gzip and XFDL**

Extract `.tar.gz` archives and decode XFDL content that uses gzip-related encodings.

**Common pattern:** Use `Gzip` when the data is a single GZIP stream, a `.gz` file, or a `.tar.gz` archive. For ZIP archives, use `Chilkat.Zip`; for raw deflate or zlib-style compression, use `Chilkat.Compression`.

For an extended overview, see [Gzip Class Overview](https://www.chilkatsoft.com/gzip_overview.asp).

## Object creation, unlocking and error handling

**Object Creation**

```visual-basic
set gzip = Server.CreateObject("Chilkat.Gzip")

' ... use gzip ...

set gzip = Nothing
```

Classic ASP creates Chilkat objects with `Server.CreateObject`. The registered Chilkat ActiveX must match the bitness of the IIS application pool: a pool with *Enable 32-Bit Applications* set to True needs the 32-bit ActiveX, otherwise the 64-bit ActiveX. To bind to a specific major version of Chilkat, append the major version number to the ProgID, such as `Server.CreateObject("Chilkat.Gzip.11")` for Chilkat v11.\*.\*.

VBScript requires `set` when assigning an object, so the signatures on this page show `set x = obj.Method(...)` for methods that return a Chilkat object; test the result with `Is Nothing`, since a method that fails to return an object returns `Nothing`. A method with no return value is called as a statement without parentheses (`obj.Method arg1, arg2`). Boolean properties, arguments and return values are integers in the ActiveX: pass `1` or `0`, and test success with `= 1`. Byte arrays are Variant arrays and can be sent with `Response.BinaryWrite`. Asynchronous (*\*Async*) methods and event callbacks are not used from Classic ASP.

Call `Global.UnlockBundle` once at the start of the program, before using this or any other Chilkat class. Any string unlocks a fully functional 30-day trial; a purchased unlock code is used in production. See `guide.md` for the exact code in Classic ASP.

How failure is reported depends on the method's return type and is stated in the note under each method below. In every case the diagnostic text is in the `LastErrorText` property of the object whose method was called.

## Members common to every Chilkat class

Documented once per language in `common-members.md`; listed here so this page is self-contained.

| Property | Signature | Access | Meaning |
|---|---|---|---|
| `DebugLogFilePath` | `gzip.DebugLogFilePath ' String` | read/write | If set to a file path, this property logs the LastErrorText of each Chilkat method or property call to the specified file. |
| `LastBinaryResult` | `gzip.LastBinaryResult ' Variant (read-only)` | read-only | This property is mainly used in SQL Server stored procedures to retrieve binary data from the last method call that returned binary data. |
| `LastErrorHtml` | `gzip.LastErrorHtml ' String (read-only)` | read-only | Provides HTML-formatted information about the last called method or property. |
| `LastErrorText` | `gzip.LastErrorText ' String (read-only)` | read-only | Provides plain text information about the last called method or property. |
| `LastErrorXml` | `gzip.LastErrorXml ' String (read-only)` | read-only | Provides XML-formatted information about the last called method or property. |
| `LastMethodSuccess` | `gzip.LastMethodSuccess ' Long` | read/write | Indicates the success or failure of the most recent method call: `1` means success, `0` means failure. |
| `LastStringResult` | `gzip.LastStringResult ' String (read-only)` | read-only | In SQL Server stored procedures, this property holds the string return value of the most recent method call that returns a string. |
| `LastStringResultLen` | `gzip.LastStringResultLen ' Long (read-only)` | read-only | The length, in characters, of the string contained in the LastStringResult property. |
| `VerboseLogging` | `gzip.VerboseLogging ' Long` | read/write | If set to `1`, then the contents of LastErrorText (or LastErrorXml, or LastErrorHtml) may contain more verbose information. |
| `Version` | `gzip.Version ' String (read-only)` | read-only | Version of the component/library, such as "10.1.0" |

## Member index

| Member | Kind | Signature |
|---|---|---|
| `AbortCurrent` | property, read/write | `gzip.AbortCurrent ' Long` |
| `Comment` | property, read/write | `gzip.Comment ' String` |
| `CompressionLevel` | property, read/write | `gzip.CompressionLevel ' Long` |
| `ExtraData` | property, read/write | `gzip.ExtraData ' Variant` |
| `Filename` | property, read/write | `gzip.Filename ' String` |
| `LastModStr` | property, read/write | `gzip.LastModStr ' String` |
| `UseCurrentDate` | property, read/write | `gzip.UseCurrentDate ' Long` |
| `CompressBd` | method | `success = gzip.CompressBd(binDat) ' Long (1/0)` |
| `CompressFile` | method | `success = gzip.CompressFile(srcPath, destPath) ' Long (1/0)` |
| `CompressFile2` | method | `success = gzip.CompressFile2(srcPath, embeddedFilename, destPath) ' Long (1/0)` |
| `CompressFileBd` | method | `success = gzip.CompressFileBd(filePath, bd) ' Long (1/0)` |
| `CompressFileToMem` | method | `bytes = gzip.CompressFileToMem(inFilename) ' Variant` |
| `CompressMemory` | method | `bytes = gzip.CompressMemory(inData) ' Variant` |
| `CompressMemToFile` | method | `success = gzip.CompressMemToFile(inData, destPath) ' Long (1/0)` |
| `CompressSb` | method | `success = gzip.CompressSb(sb, charset, bd) ' Long (1/0)` |
| `CompressString` | method | `bytes = gzip.CompressString(inStr, destCharset) ' Variant` |
| `CompressStringENC` | method | `str = gzip.CompressStringENC(inStr, charset, encoding) ' String` |
| `CompressStringToFile` | method | `success = gzip.CompressStringToFile(inStr, destCharset, destPath) ' Long (1/0)` |
| `GetGzipInfo` | method | `success = gzip.GetGzipInfo(filePath, json) ' Long (1/0)` |
| `GetGzipInfoBd` | method | `success = gzip.GetGzipInfoBd(bd, json) ' Long (1/0)` |
| `IsGzip` | method | `success = gzip.IsGzip(bd) ' Long (1/0)` |
| `SetDt` | method | `success = gzip.SetDt(dt) ' Long (1/0)` |
| `SetExtraData` | method | `success = gzip.SetExtraData(encodedData, encoding) ' Long (1/0)` |
| `UncompressBd` | method | `success = gzip.UncompressBd(binDat) ' Long (1/0)` |
| `UncompressBdToFile` | method | `success = gzip.UncompressBdToFile(bd, filePath) ' Long (1/0)` |
| `UncompressFile` | method | `success = gzip.UncompressFile(srcPath, destPath) ' Long (1/0)` |
| `UncompressFileToMem` | method | `bytes = gzip.UncompressFileToMem(srcPath) ' Variant` |
| `UncompressFileToString` | method | `str = gzip.UncompressFileToString(srcPath, charset) ' String` |
| `UncompressMemory` | method | `bytes = gzip.UncompressMemory(inData) ' Variant` |
| `UncompressMemToFile` | method | `success = gzip.UncompressMemToFile(inData, destPath) ' Long (1/0)` |
| `UncompressString` | method | `str = gzip.UncompressString(inData, inCharset) ' String` |
| `UncompressStringENC` | method | `str = gzip.UncompressStringENC(inStr, charset, encoding) ' String` |
| `UnTarGz` | method | `success = gzip.UnTarGz(gzPath, destDir, bNoAbsolute) ' Long (1/0)` |
| `XfdlToXml` | method | `str = gzip.XfdlToXml(xfldData) ' String` |

Deprecated members are listed at the end of this file with their replacements; do not use them in new code.

## Properties

### Gzip.AbortCurrent

`Chilkat 11.7.0 · asp · Gzip · AbortCurrent · property · read/write · since 9.5.0.58`

```visual-basic
gzip.AbortCurrent  ' Long
```

Set this property to `1` to request that the currently running operation be aborted. This is useful for long-running operations such as large file compression or decompression. Methods that complete quickly are generally not affected.

If no method is currently running, the property is automatically reset to `0` when the next method begins. After an abort occurs, it is also reset to `0`. Both synchronous and asynchronous operations can be aborted. For synchronous calls, another thread must set this property.

### Gzip.Comment

`Chilkat 11.7.0 · asp · Gzip · Comment · property · read/write`

```visual-basic
gzip.Comment  ' String
```

An optional comment to embed in the Gzip file when a `Compress*` method is called.

### Gzip.CompressionLevel

`Chilkat 11.7.0 · asp · Gzip · CompressionLevel · property · read/write · since 9.5.0.50`

```visual-basic
gzip.CompressionLevel  ' Long
```

Controls the compression level used when creating Gzip data. The value can range from `0` to `9`.

- `0` = no compression
- `9` = maximum compression

The default value is `6`, which is a typical balance between compression size and speed. Higher levels may take significantly more CPU time while producing only slightly smaller output, depending on the data.

### Gzip.ExtraData

`Chilkat 11.7.0 · asp · Gzip · ExtraData · property · read/write`

```visual-basic
gzip.ExtraData  ' Variant
```

Optional binary data to include in the Gzip header when a `Compress*` method is called.

### Gzip.Filename

`Chilkat 11.7.0 · asp · Gzip · Filename · property · read/write`

```visual-basic
gzip.Filename  ' String
```

The filename to embed in the Gzip file when a `Compress*` method is called. Some Gzip extraction tools use this embedded filename as the default output filename.

### Gzip.LastModStr

`Chilkat 11.7.0 · asp · Gzip · LastModStr · property · read/write`

```visual-basic
gzip.LastModStr  ' String
```

Specifies the last-modified date/time to embed in the Gzip file when a `Compress*` method is called.

The value must be provided as an RFC 822 formatted date/time string.

**Example:**

```
Sun, 12 Apr 2026 12:45:26 GMT
```

If this property is not set, the current system date/time is used automatically.

### Gzip.UseCurrentDate

`Chilkat 11.7.0 · asp · Gzip · UseCurrentDate · property · read/write`

```visual-basic
gzip.UseCurrentDate  ' Long
```

Controls the last-modified date/time assigned to files created by `Uncompress*` methods.

When set to `1`, the extracted file uses the current date/time instead of the date/time stored in the Gzip data.

## Methods

### Gzip.CompressBd

`Chilkat 11.7.0 · asp · Gzip · CompressBd · method · since 9.5.0.67`

```visual-basic
success = gzip.CompressBd(binDat)  ' Long (1/0)
```

Compresses the contents of a `BinData` object in place, replacing the original data with Gzip-compressed data.

Returns 1 for success, 0 for failure.

### Gzip.CompressFile

`Chilkat 11.7.0 · asp · Gzip · CompressFile · method`

```visual-basic
success = gzip.CompressFile(srcPath, destPath)  ' Long (1/0)
```

Compresses a file and writes the result as a Gzip file, typically with a `.gz` extension.

Returns 1 for success, 0 for failure.

### Gzip.CompressFile2

`Chilkat 11.7.0 · asp · Gzip · CompressFile2 · method`

```visual-basic
success = gzip.CompressFile2(srcPath, embeddedFilename, destPath)  ' Long (1/0)
```

Compresses a file and writes the result as a Gzip file, while allowing a different filename to be embedded inside the Gzip data.

The `inFilename` parameter is the actual file on disk. The `srcPath` parameter is the filename stored in the Gzip header and may be used by extraction tools as the output filename.

Returns 1 for success, 0 for failure.

### Gzip.CompressFileBd

`Chilkat 11.7.0 · asp · Gzip · CompressFileBd · method · since 11.0.0`

```visual-basic
success = gzip.CompressFileBd(filePath, bd)  ' Long (1/0)
```

Compresses a file and stores the resulting Gzip data in a `BinData` object.

The compressed output is held in memory. The maximum compressed size is 4 GB.

Returns 1 for success, 0 for failure.

### Gzip.CompressFileToMem

`Chilkat 11.7.0 · asp · Gzip · CompressFileToMem · method`

```visual-basic
bytes = gzip.CompressFileToMem(inFilename)  ' Variant
```

Compresses a file and returns the resulting Gzip data as a byte array.

The compressed output is held in memory and has a maximum size limit of 4 GB.

Returns a zero-length byte array (as a Variant) on failure.  
An empty array will have a UBound of -1 meaning 0 elements.

### Gzip.CompressMemory

`Chilkat 11.7.0 · asp · Gzip · CompressMemory · method`

```visual-basic
bytes = gzip.CompressMemory(inData)  ' Variant
```

Compresses a byte array and returns the result as an in-memory Gzip image.

The uncompressed input data must not exceed 4 GB.

Returns a zero-length byte array (as a Variant) on failure.  
An empty array will have a UBound of -1 meaning 0 elements.

### Gzip.CompressMemToFile

`Chilkat 11.7.0 · asp · Gzip · CompressMemToFile · method`

```visual-basic
success = gzip.CompressMemToFile(inData, destPath)  ' Long (1/0)
```

Compresses a byte array and writes the resulting Gzip data to a file.

Returns 1 for success, 0 for failure.

### Gzip.CompressSb

`Chilkat 11.7.0 · asp · Gzip · CompressSb · method · since 11.0.0`

```visual-basic
success = gzip.CompressSb(sb, charset, bd)  ' Long (1/0)
```

Compresses the text contained in a `StringBuilder` and writes the Gzip-compressed result to a `BinData` object.

Before compression, the string is converted to bytes using the specified character set, such as `utf-8`, `iso-8859-1`, or `shift_JIS`.

Returns 1 for success, 0 for failure.

### Gzip.CompressString

`Chilkat 11.7.0 · asp · Gzip · CompressString · method`

```visual-basic
bytes = gzip.CompressString(inStr, destCharset)  ' Variant
```

**Full documentation for this method (same in every language):** [Full List of Charset Names](https://www.chilkatsoft.com/ai-docs/v/11.7.0/articles/charsets_supported_by_chilkat.md)

Compresses a string and returns the Gzip-compressed data as a byte array.

The string is first converted to bytes using the character set specified by `destCharset`. Common values include `utf-8`, `iso-8859-1`, and `shift_JIS`.

Returns a zero-length byte array (as a Variant) on failure.  
An empty array will have a UBound of -1 meaning 0 elements.

### Gzip.CompressStringENC

`Chilkat 11.7.0 · asp · Gzip · CompressStringENC · method`

```visual-basic
str = gzip.CompressStringENC(inStr, charset, encoding)  ' String
```

**Full documentation for this method (same in every language):** [Binary Encodings Supported by Chilkat](https://www.chilkatsoft.com/ai-docs/v/11.7.0/articles/binary_encodings.md)

Compresses a string and returns the Gzip-compressed data as an encoded string.

The input string is first converted to bytes using the specified character set. The compressed binary data is then encoded using the requested encoding, such as `base64`, `hex`, `url`, `base32`, or quoted-printable.

Returns `Nothing` on failure

### Gzip.CompressStringToFile

`Chilkat 11.7.0 · asp · Gzip · CompressStringToFile · method`

```visual-basic
success = gzip.CompressStringToFile(inStr, destCharset, destPath)  ' Long (1/0)
```

**Full documentation for this method (same in every language):** [Full List of Charset Names](https://www.chilkatsoft.com/ai-docs/v/11.7.0/articles/charsets_supported_by_chilkat.md)

Compresses a string and writes the resulting Gzip data to a file.

The string is first converted to bytes using the character set specified by `destCharset`.

Returns 1 for success, 0 for failure.

### Gzip.GetGzipInfo

`Chilkat 11.7.0 · asp · Gzip · GetGzipInfo · method · since 11.5.0`

```visual-basic
success = gzip.GetGzipInfo(filePath, json)  ' Long (1/0)
```

Retrieves metadata stored in a Gzip file and returns the information in a `JsonObject`.

The metadata is returned using the following JSON structure:

```
{
  "extraData": "AAECAw==",
  "filename": "example.txt",
  "comment": "This is the comment"
}
```

- **filename** – the original filename embedded in the Gzip file (if present)
- **comment** – an optional descriptive comment (if present)
- **extraData** – optional additional binary data, returned as a Base64-encoded string

Any of these fields may be omitted if they were not included when the Gzip file was created.

Returns 1 for success, 0 for failure.

### Gzip.GetGzipInfoBd

`Chilkat 11.7.0 · asp · Gzip · GetGzipInfoBd · method · since 11.5.0`

```visual-basic
success = gzip.GetGzipInfoBd(bd, json)  ' Long (1/0)
```

Retrieves metadata stored in Gzip data contained within a `BinData` object and returns the information in a `JsonObject`.

The metadata is returned using the same JSON structure:

```
{
  "extraData": "AAECAw==",
  "filename": "example.txt",
  "comment": "This is the comment"
}
```

- **filename** – the original filename embedded in the Gzip data (if present)
- **comment** – an optional descriptive comment (if present)
- **extraData** – optional additional binary data, returned as a Base64-encoded string

Any of these fields may be omitted if they were not included when the Gzip data was created.

Returns 1 for success, 0 for failure.

### Gzip.IsGzip

`Chilkat 11.7.0 · asp · Gzip · IsGzip · method · since 11.0.0`

```visual-basic
success = gzip.IsGzip(bd)  ' Long (1/0)
```

Checks whether the data contained in a `BinData` object is in Gzip format.

Returns `1` if the data is Gzip-formatted, or `0` otherwise.

### Gzip.SetDt

`Chilkat 11.7.0 · asp · Gzip · SetDt · method`

```visual-basic
success = gzip.SetDt(dt)  ' Long (1/0)
```

Sets the last-modified date/time to embed in the Gzip file when a `Compress*` method is called.

If no date/time is explicitly set, the current system date/time is used.

Returns 1 for success, 0 for failure.

### Gzip.SetExtraData

`Chilkat 11.7.0 · asp · Gzip · SetExtraData · method · since 11.0.0`

```visual-basic
success = gzip.SetExtraData(encodedData, encoding)  ' Long (1/0)
```

**Full documentation for this method (same in every language):** [Binary Encodings Supported by Chilkat](https://www.chilkatsoft.com/ai-docs/v/11.7.0/articles/binary_encodings.md)

Sets optional extra binary data to include in the Gzip header when a `Compress*` method is called.

The data is passed as an encoded string. Supported encodings include `base64`, `hex`, `ascii`, and many others.

Returns 1 for success, 0 for failure.

### Gzip.UncompressBd

`Chilkat 11.7.0 · asp · Gzip · UncompressBd · method · since 9.5.0.67`

```visual-basic
success = gzip.UncompressBd(binDat)  ' Long (1/0)
```

Decompresses Gzip data contained in a `BinData` object in place, replacing the compressed data with the uncompressed data.

Returns 1 for success, 0 for failure.

### Gzip.UncompressBdToFile

`Chilkat 11.7.0 · asp · Gzip · UncompressBdToFile · method · since 11.0.0`

```visual-basic
success = gzip.UncompressBdToFile(bd, filePath)  ' Long (1/0)
```

Decompresses Gzip data stored in a `BinData` object and writes the result to a file.

Returns 1 for success, 0 for failure.

### Gzip.UncompressFile

`Chilkat 11.7.0 · asp · Gzip · UncompressFile · method`

```visual-basic
success = gzip.UncompressFile(srcPath, destPath)  ' Long (1/0)
```

Decompresses a Gzip file and writes the result to the specified output path.

The output filename is provided by the caller. The filename embedded in the Gzip data is not used.

Returns 1 for success, 0 for failure.

### Gzip.UncompressFileToMem

`Chilkat 11.7.0 · asp · Gzip · UncompressFileToMem · method`

```visual-basic
bytes = gzip.UncompressFileToMem(srcPath)  ' Variant
```

Decompresses a Gzip file and returns the uncompressed data as a byte array.

The uncompressed output is held in memory and must not exceed 4 GB.

Returns a zero-length byte array (as a Variant) on failure.  
An empty array will have a UBound of -1 meaning 0 elements.

### Gzip.UncompressFileToString

`Chilkat 11.7.0 · asp · Gzip · UncompressFileToString · method`

```visual-basic
str = gzip.UncompressFileToString(srcPath, charset)  ' String
```

**Full documentation for this method (same in every language):** [List of Valid Charsets](https://www.chilkatsoft.com/ai-docs/v/11.7.0/articles/charsets_supported_by_chilkat.md)

Decompresses a Gzip file that contains text and returns the uncompressed text as a string.

The `charset` parameter specifies the character encoding of the uncompressed text, such as `utf-8`, `iso-8859-1`, `windows-1252`, `shift_JIS`, `big5`, etc.

Returns `Nothing` on failure

### Gzip.UncompressMemory

`Chilkat 11.7.0 · asp · Gzip · UncompressMemory · method`

```visual-basic
bytes = gzip.UncompressMemory(inData)  ' Variant
```

Decompresses an in-memory Gzip image and returns the uncompressed data as a byte array.

The uncompressed output is held in memory and must not exceed 4 GB.

Returns a zero-length byte array (as a Variant) on failure.  
An empty array will have a UBound of -1 meaning 0 elements.

### Gzip.UncompressMemToFile

`Chilkat 11.7.0 · asp · Gzip · UncompressMemToFile · method`

```visual-basic
success = gzip.UncompressMemToFile(inData, destPath)  ' Long (1/0)
```

Decompresses an in-memory Gzip image and writes the uncompressed data to a file.

Returns 1 for success, 0 for failure.

### Gzip.UncompressString

`Chilkat 11.7.0 · asp · Gzip · UncompressString · method`

```visual-basic
str = gzip.UncompressString(inData, inCharset)  ' String
```

**Full documentation for this method (same in every language):** [Full List of Charset Names](https://www.chilkatsoft.com/ai-docs/v/11.7.0/articles/charsets_supported_by_chilkat.md)

Decompresses Gzip-compressed data and returns the result as a string.

After decompression, the result is raw binary data (a sequence of bytes). These bytes are then interpreted as text using the specified character set (such as `utf-8`, `iso-8859-1`, etc.) to produce the final string.

Internally, Chilkat converts the byte sequence to a string by interpreting the bytes according to the specified character set. For example, if `utf-8` is specified, the bytes are treated as the UTF-8 byte representation of text and decoded into the internal string format used by the programming language.

It is important that the character set matches the one originally used when the data was compressed. If the wrong character set is used, the byte-to-text conversion may produce incorrect or unreadable characters.

Returns `Nothing` on failure

### Gzip.UncompressStringENC

`Chilkat 11.7.0 · asp · Gzip · UncompressStringENC · method`

```visual-basic
str = gzip.UncompressStringENC(inStr, charset, encoding)  ' String
```

**Full documentation for this method (same in every language):** [Binary Encodings Supported by Chilkat](https://www.chilkatsoft.com/ai-docs/v/11.7.0/articles/binary_encodings.md)

Decompresses Gzip data provided as an encoded string and returns the uncompressed result as text.

The input string is first decoded using the specified encoding, such as `base64`, `hex`, `url`, `base32`, quoted-printable, etc. The decoded Gzip data is then decompressed and converted to text using the specified character set.

Returns `Nothing` on failure

### Gzip.UnTarGz

`Chilkat 11.7.0 · asp · Gzip · UnTarGz · method`

```visual-basic
success = gzip.UnTarGz(gzPath, destDir, bNoAbsolute)  ' Long (1/0)
```

Extracts a `.tar.gz` archive to a directory.

The Gzip decompression and TAR extraction are performed in streaming mode. No temporary files are created, and memory usage remains small and constant.

If `bNoAbsolute` is `1`, absolute paths in the TAR archive are not allowed. This helps protect against extracting files to unsafe locations, such as system directories.

Returns 1 for success, 0 for failure.

### Gzip.XfdlToXml

`Chilkat 11.7.0 · asp · Gzip · XfdlToXml · method`

```visual-basic
str = gzip.XfdlToXml(xfldData)  ' String
```

**Full documentation for this method (same in every language):** [More about XFDL](https://www.chilkatsoft.com/ai-docs/v/11.7.0/articles/xfdl.md)

Converts encoded and compressed XFDL data to a decompressed XML string.

XFDL data is often stored in an ASCII-safe compressed form, such as `asci-gzip` or `asc-gzip`. Despite the name, this does not always mean the data is a standard `.gz` file. In some XFDL files, the compressed payload uses the raw deflate format rather than the full Gzip file format.

Chilkat automatically detects the actual encoding and compression format used by the XFDL data. It decodes the ASCII/Base64 representation, determines whether the compressed data is Gzip or deflate, decompresses it correctly, and returns the resulting XML string.

This allows applications to call `XfdlToXml` without needing to manually distinguish between XFDL variants such as Base64+Gzip and Base64+Deflate.

Returns the decoded and decompressed XML string.

**XFDL (Extensible Forms Description Language)** is an XML-based format used to define secure, interactive electronic forms—often including digital signatures and integrity protections—commonly used in government and enterprise applications.

Returns `Nothing` on failure

## Events and callbacks

This binding has no event callbacks.

## Deprecated members — do not use in new code

| Member | Kind | Deprecated in | Use instead |
|---|---|---|---|
| `Decode` | method | before 11.6.1 | — |
| `DeflateStringENC` | method | before 11.6.1 | — |
| `Encode` | method | before 11.6.1 | — |
| `ExamineFile` | method | before 11.6.1 | — |
| `ExamineMemory` | method | before 11.6.1 | — |
| `GetDt` | method | before 11.6.1 | — |
| `InflateStringENC` | method | before 11.6.1 | — |
| `ReadFile` | method | before 11.6.1 | — |
| `WriteFile` | method | before 11.6.1 | — |

## Related classes

[`BinData`](https://www.chilkatsoft.com/ai-docs/v/11.7.0/asp/classes/BinData.md), [`CkDateTime`](https://www.chilkatsoft.com/ai-docs/v/11.7.0/asp/classes/CkDateTime.md), [`JsonObject`](https://www.chilkatsoft.com/ai-docs/v/11.7.0/asp/classes/JsonObject.md), [`StringBuilder`](https://www.chilkatsoft.com/ai-docs/v/11.7.0/asp/classes/StringBuilder.md)

