Zip File

Compresses a single file or a PAWFileData object as ZIP.


⬅️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).


➡️OUTPUT

Parameter

Type

Description

IsZipFileSuccessful

Boolean

Whether the operation succeeded

ZipFileMessage

String

Result message

ZipFileResult

Byte[]

Compressed ZIP data (byte array)


⬇️MISC

Parameter

Type

Default

Description

ThrowException

Boolean

❌No

Specifies whether an exception is thrown when the operation fails. The default value is "No".