File Processor Connector Guide > File Processor Operations > Compressing or Decompressing Files
  

Compressing or Decompressing Files

Use File Processor Connector to compress and decompress the local files.
You can use the FileCompress object to compress and the FileDecompress object to decompress local files. File Processor Connector supports the zip, gzip, and 7zip file formats to compress and decompress the local files.

Compressing or Decompressing Files Examples

You are a system administrator and want to compress files present in the local file system.
Perform the following steps to create a Data Synchronization task to compress files present in the local file system:
    1. To create a Data Synchronization task, click Task Wizards > Data Synchronization, and then click New.
    2. In the Definition page, configure the following fields:
    Field
    Description
    Task Name
    Name of the Data Synchronization task. For example: File_Process_Compression
    Description
    Description of the Data Synchronization task. Maximum length is 255 characters.
    Task Operation
    Select Insert.
    3. Click Next.
    4. In the Source page, configure the following fields:
    Field
    Description
    Connection
    Select the connection you created. For example: File_Process_Compression_Conn
    Source Type
    Select Single.
    Source Object
    Select FileCompress.
    5. Click Next.
    6. In the Target page, configure the following fields:
    Field
    Description
    Connection
    Select the flat file connection.
    Target Object
    Click Create Target.
    7. Click Next.
    8. In the Data Filters page, create a new filter, and filter by based on the FileName, CompressionType, lastModDate, or CompressAllFiles filter fields. You can use the CompressAllFiles filter field to zip files to a single zip or .7z file.
    9. Click Next.
    10. In the Field Mapping page, click Automatch.
    11. Click Validate Mapping.
    12. Save and run the Data Synchronization task.