Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

In this article

...

You can use this Snap to decompress the contents of a binary stream. For example, if a File Reader Snap is configured to read a compressed file, you can use this Snap to decompress the contents before passing the data to a parser Snap. It currently supports decompressing files in the GZIP, BZIP2, and DEFLATE compression schemes. The decompression scheme can be explicitly chosen or automatically detected based on the contents of the binary stream. If the compression scheme is set to AUTO and the incoming data is not compressed, the raw input data is passed through without any changes.

Note

This Snap only uncompresses the compressed files on the first level. It does not decompress the archived folders which are located at the second level and deeper.

This Snap supports decompression of the following compression schemes:

  • GZIP

  • BZIP2 (or BZ2)

  • DEFLATE

...

Type

Format

Number of Views

Examples of Upstream and Downstream Snaps

Description

Input 

Document


  • Min:1

  • Max:1

  • Mapper

  • Copy

The binary file document to be decompressed.

Output

Document

  • Min:1

  • Max:1

  • Mapper

  • Any Parser Snap

The decompressed file .in the specified decompression format:

  • AUTO

  • BZIP2

  • GZIP

  • DEFLATE

Snap Settings

Info
  • Asterisk ( * ): Indicates a mandatory field.

  • Suggestion icon ((blue star)): Indicates a list that is dynamically populated based on the configuration.

  • Expression icon ((blue star)): Indicates whether the value is an expression (if enabled) or a static value (if disabled). Learn more about Using Expressions in SnapLogic.

  • Add icon ((blue star)): Indicates that you can add fields in the field set.

  • Remove icon ((blue star)): Indicates that you can remove fields from the field set.

...