X4 Produktdokumentation

Operation: Unzip

With the Unzip operation of the ZIP in Memory Converter, you unzip a ZIP archive into memory.

For more information on other operations of the ZIP in Memory Converter, see ZIP in Memory Converter.

Parameters

encoding

Character encoding for file/path names

Possible values:

  • Any valid string (e.g. UTF-8)

  • CP850: MS-DOS Germany, is generated by MS Windows in this way (default)

  • (empty): UTF-8 (for backward compatibility with older X4 Server versions

Status values

1

The operation was executed successfully.

-1

The operation failed due to a technical error.

Output

With the Unzip operation, the adapter creates an adapter-specific XML structure from a ZIP archive, e.g.:

<Archiv>
    <File name="Data.txt">Q29udGVudCBvZiB0aGlzIHRleHQgZmlsZQ==</File>
    <Directory name="Folder/" />
</Archiv>
  • Each <Directory> element represents a (empty) folder in the ZIP archive.

  • Each <File> element represents a file and stores the Base64-encoded file content as a value.

  • The name attribute specifies the file or folder name.

  • The size attribute specifies the file size if the value is stored in the ZIP archive.