ZipHandling

Content Type: Module
Categories: Utility,Import/Export,Data

Overview

This module includes four Java actions:

  • ZipDocuments – Allows you to create a ZIP file from a list of FileDocument objects.
  • UnzipDocument – Extracts a ZIP file and returns the contents as a list of FileDocument objects.
  • GetZipFileNames – Retrieves the names of all files contained within a ZIP file.
  • ExtractFile – Extracts a single file from a ZIP archive.

 

Documentation

Description

This module provides Java actions for working with ZIP and archive files in Mendix. It enables you to create ZIP files, extract archives, inspect contents, and retrieve individual files.

Available Actions

  • ZipDocuments – Create a ZIP file from a list of FileDocument objects
  • UnzipDocument – Extract an archive and return the contents as a list of FileDocument objects
  • GetZipFileNames – Retrieve all file names inside an archive without extracting them
  • ExtractFile – Extract a single file from an archive

Typical Usage Scenario

Use this module when you need to create, read, or extract ZIP or other archive files within a Mendix application.

Features and Limitations

ZipDocuments

  • Creates a ZIP file from all provided FileDocument objects

 

UnzipDocument

  • Extracts all files from an archive into a committed list of FileDocument objects

 

GetZipFileNames

  • Returns the list of file names contained in an archive 
  • Does not extract or create FileDocument objects
  • To inspect the archive, can be used to find the exact file for ExtractFile

ExtractFile

  • Extracts a single file from an archive
  • Useful when only a specific file is needed (performance optimization)

Installation

Import the module using the standard Import Module Package option in Mendix Studio Pro.

 

 

 

 

 

 

 

 

Releases

Version: 5.1.1
Framework Version: 10.24.0
Release Notes:
  • Exposed new java actions as microflow
  • Added Apche 2.0 License file
Version: 5.1.0
Framework Version: 10.24.0
Release Notes:

Added new java actions

 

GetZipFileNames : will list the files in the zipfile

ExtractFile : willextract one single file from zip

Version: 5.0.2
Framework Version: 10.24.0
Release Notes:

Made release available for 10-24 and higher

Version: 4.6.0
Framework Version: 10.6.9
Release Notes: Removed the input parameter ZipFile, that was used for specializated FileDocuments. Mendix does not allow to change input parameters anymore. Use the communityCommons DuplicateFileDocument to change the FileDocument to your own specialization. For this you have to reassign parameters for current use op ZipDocuments

Removed commons-compress jar. So it can be deleted from userlib folder if it is not used by other modules.
Version: 4.5.1
Framework Version: 10.0.0
Release Notes: Fix Unused bytes for unzip
Version: 4.4.1
Framework Version: 9.18.4
Release Notes: Mendix 9.18 > : Fix for unused bytes for unzipdocuments
Version: 4.3.1
Framework Version: 8.18.24
Release Notes: Mendix 8 , Fix for unused bytes for unzipdocuments
Version: 4.0.3
Framework Version: 10.0.0
Release Notes: Fix for Mendix 10
Version: 4.0.2
Framework Version: 9.18.4
Release Notes: Available for Mendix 10
Version: 4.0.1
Framework Version: 8.12.0
Release Notes: New licensemodel