# Zip File

Compresses a single file or a PAWFileData object as ZIP.


---

### :arrow_left:**INPUT**

| **Parameter** | **Type** | **Required** | **Description** |
|-----------|------|----------|-------------|
| `FilePath` | `String` | ✅Yes\*   | Path of the file to compress |
| `DataFile` | `PAWFileData` | ✅Yes\*   | File data (in-memory) |
| `Password` | `SecureString` | ❌No      | ZIP password |
| `ZipFilePath` | `String` | ❌No      | Path of the ZIP file to be created |

\*FilePath and DataFile are alternatives to each other (OverloadGroup).


---

### :arrow_right:**OUTPUT**

| **Parameter** | **Type** | **Description** |
|-----------|------|-------------|
| `IsZipFileSuccessful` | `Boolean` | Whether the operation succeeded |
| `ZipFileMessage` | `String` | Result message |
| `ZipFileResult` | `Byte[]` | Compressed ZIP data (byte array) |


---

### :arrow_down:**MISC**

| **Parameter** | **Type** | **Default** | **Description** |
|-----------|------|---------|-------------|
| `ThrowException` | `Boolean` | ❌No     | Specifies whether an exception is thrown when the operation fails. The default value is "**No**". |