ZIP in Memory Compression
This adapter creates a ZIP archive with one or multiple files from data deposited in an adapter-specific XML structure, and keeps the complete data in the memory, i.e. no file system access is required.
The ZIP in Memory Compression adapter is discontinued with version 6.2.0 of the X4 BPMS and will not be supported in future versions of the X4 BPMS. Please use the Zip Converter instead.
Properties
Operation | Defines the operation executed by the adapter Possible values:
|
Parameters
Adapter | Main adapter class (do not change!) Possible values: |
encoding | Character encoding for file/path names Possible values:
|
Input
If property Operation
is set to Zip
, the adapter expects an adapter-specific input XML structure. It contains the file names and the Base64-encoded contents of all files in the ZIP archive. Each <File>
element corresponds to a file and each <Directory>
element to an empty folder in the ZIP archive.
<Archiv>
<File name="File name" comment="Optional comment">
<!--Base64-encoded data-->
</File>
<Directory name="Folder name/" />
</Archiv>
Output
If the property Operation
is set to Unzip
, the adapter creates an adapter-specific XML structure from a ZIP archive.
<Archiv>
<File name="Data.txt">Q29udGVudCBvZiB0aGlzIHRleHQgZmlsZQ==</File>
<Directory name="Folder/" />
</Archiv>
Explanation:
- Each element
<Directory>
corresponds to an (empty) folder in the ZIP archive. - Each element
<File>
corresponds to a file and saves the Base64-encoded file content as value. - The attribute
name
specifies the file or folder name. - The attribute
size
specifies the file size, if it is deposited within the ZIP archive.