Zip v2
ZIP is a compressed archive format used to package one or more files into a single stream.
The Zip Node creates a ZIP archive stream that contains a single file from the supplied input stream, so downstream steps can store or transmit the compressed content.
Revision History
0.0.0.1 - Initial release.
0.0.0.6 - Corrected attributes.
0.0.0.7 - Corrected the Node name.
0.0.0.8 - Maintenance release.
0.0.0.10 - Renamed the Compression Level parameter to CompressionLevel.
Setup Notes
You can add this Node to a Workflow without authentication or external setup.
Methods
The Node exposes one Method for creating a single-file ZIP archive.
Create
Creates a ZIP archive containing one file from the supplied content stream.
| Parameter | Type | Description |
|---|---|---|
Filename |
String | File name to store inside the ZIP archive. |
CompressionLevel |
Enum | Compression level to use when creating the archive entry: Optimal, Fastest, NoCompression, or SmallestSize. |
Stream |
Stream | Readable, uncompressed content stream to store in the archive. |
| Return | Type | Description |
|---|---|---|
ZippedContent |
Stream | ZIP archive containing the input file. |
Usage Notes
- The archive contains exactly one file named by
Filename.Filenamemust not be empty. - The input
Streammust be readable. The Node resets seekable streams to the beginning before copying them. - The returned stream is deleted from temporary storage when it is closed.
- When upgrading to version
0.0.0.10, refresh the Node's templates and update Workflow references fromCompression LeveltoCompressionLevel.