The extension has three methods:
CompressFromBinaryData
CompressFromDistributedFiles
CompressFromFolder
All of the above methods have a common argument 'CompressionLevel'. Values of this parameters are:
None: No compression will be performed on the files. Result will only be a zip file with original file size.Optimal: Files will be optimally compressed even if the operation takes a little longer to complete. This is recommended.Fast: Operation will be completed fast even if the files are not optimally compressed.
CompressFromBinaryData takes two arguments:FileList: List of binary data and file name.CompressionLevel: ('none', 'optimal' or 'fast')
CompressFromDistributedFiles takes two arguments:FileList: List of files with file paths.CompressionLevel: ('none', 'optimal' or 'fast')
CompressFromFolder takes two arguments:FolderPath: Folder path of files to be compressed.CompressionLevel: ('none', 'optimal' or 'fast')
All the above method returns record with following attributes:
IsSucceeded: Boolean variable representing if the compression was done successfully or not.Message: Appropriate message as per success or failure of the compression operation.ZipData: Zip file as binary data.