Component: Compression 
-----------------------

Functions to handle Zip and gzip files.

Please use [Archive](component_Archive.md) functions for newer projects.

| Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|
| [3.4](newinversion34.md "First functions introduced with version 3.4.") / [6.0](newinversion60.md "Newest functions in version 6.0.") | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

  
| Item | Details |
|:--|:--|
| [GZipFile.Compress](GZipFileCompress.md)   Compresses a file. | All   4.2 |
| [GZipFile.Decompress](GZipFileDecompress.md)   Decompresses a file. | All   4.2 |
| [UnZipFile.Close](UnZipFileClose.md)   Closes the current zip file. | All   3.4 |
| [UnZipFile.ExtractFiles](UnZipFileExtractFiles.md)  **Deprecated**    Extracts all files from current archive into a folder. | All   6.0 |
| [UnZipFile.GlobalComment](UnZipFileGlobalComment.md)   Reads the global comment of the zip archive. | All   3.4 |
| [UnZipFile.ItemCRC](UnZipFileItemCRC.md)   Queries the checksum for a file. | All   3.4 |
| [UnZipFile.ItemComment](UnZipFileItemComment.md)   Queries the file comment of the given item. | All   3.4 |
| [UnZipFile.ItemCompressedSize](UnZipFileItemCompressedSize.md)   Queries compressed item size. | All   3.4 |
| [UnZipFile.ItemCompressionMethod](UnZipFileItemCompressionMethod.md)   Queries the compression method used for this item. | All   3.4 |
| [UnZipFile.ItemCount](UnZipFileItemCount.md)   Queries number of items in the archive. | All   3.4 |
| [UnZipFile.ItemDate](UnZipFileItemDate.md)   Queries file date of item. | All   3.4 |
| [UnZipFile.ItemDiskNumberStart](UnZipFileItemDiskNumberStart.md)   Queries the disk number start. | All   3.4 |
| [UnZipFile.ItemExternalFileAttributes](UnZipFileItemExternalFileAttributes.md)   Queries the external file attributes for this item. | All   3.4 |
| [UnZipFile.ItemFlag](UnZipFileItemFlag.md)   Queries the flags for this item. | All   3.4 |
| [UnZipFile.ItemInternalFileAttributes](UnZipFileItemInternalFileAttributes.md)   Queries the internal file attributes for this item. | All   3.4 |
| [UnZipFile.ItemName](UnZipFileItemName.md)   Queries the file name of the given item. | All   3.4 |
| [UnZipFile.ItemSizeFileComment](UnZipFileItemSizeFileComment.md)   Queries the size of the comment in bytes. | All   3.4 |
| [UnZipFile.ItemSizeFileExtra](UnZipFileItemSizeFileExtra.md)   Queries the size of extra file data. | All   3.4 |
| [UnZipFile.ItemSizeFileName](UnZipFileItemSizeFileName.md)   Queries the size of the file name. | All   3.4 |
| [UnZipFile.ItemUncompressedSize](UnZipFileItemUncompressedSize.md)   Queries uncompressed item size. | All   3.4 |
| [UnZipFile.ItemVersion](UnZipFileItemVersion.md)   Queries the version number of the zip format used to create this entry. | All   3.4 |
| [UnZipFile.ItemVersionNeeded](UnZipFileItemVersionNeeded.md)   Returns the version needed to uncompress this entry. | All   3.4 |
| [UnZipFile.OpenContainer](UnZipFileOpenContainer.md)  **Deprecated**    Opens a zip archive stored in a container. | All   3.4 |
| [UnZipFile.OpenFile](UnZipFileOpenFile.md)  **Deprecated**    Opens a zip archive file. | All   3.4 |
| [UnZipFile.ReadAsFileContainer](UnZipFileReadAsFileContainer.md)   Reads the file with given index as container value with data. | All   3.4 |
| [UnZipFile.ReadAsGIFContainer](UnZipFileReadAsGIFContainer.md)   Reads the file with given index as container value with GIF data. | All   3.4 |
| [UnZipFile.ReadAsHex](UnZipFileReadAsHex.md)   Reads the file with given index as data and return hex text. | All   3.4 |
| [UnZipFile.ReadAsJPEGContainer](UnZipFileReadAsJPEGContainer.md)   Reads the file with given index as container value with JPEG data. | All   3.4 |
| [UnZipFile.ReadAsPNGContainer](UnZipFileReadAsPNGContainer.md)   Reads the file with given index as container value with PNG data. | All   3.4 |
| [UnZipFile.ReadAsText](UnZipFileReadAsText.md)   Reads the file with given index as text. | All   3.4 |
| [UnZipFile.ReadToFile](UnZipFileReadToFile.md)   Reads file from archive and writes it to a new file. | All   3.4 |
| [UnZipFile.UsePassword](UnZipFileUsePassword.md)   Sets the password to use for uncompressing. | All   5.1 |
| [ZipFile.CRCFile](ZipFileCRCFile.md)   Calculates CRC of a file. | All   4.3 |
| [ZipFile.Close](ZipFileClose.md)   Closes the zip archive. | All   3.4 |
| [ZipFile.CompressFiles](ZipFileCompressFiles.md)  **Deprecated**    Compresses a few files into a zip archive. | All   6.0 |
| [ZipFile.CreateFile](ZipFileCreateFile.md)  **Deprecated**    Creates a new file in the zip archive. | All   3.4 |
| [ZipFile.Open](ZipFileOpen.md)  **Deprecated**    Creates a new zip archive. | All   3.4 |
| [ZipFile.SetCompressionLevel](ZipFileSetCompressionLevel.md)   Sets the compression level. | All   3.4 |
| [ZipFile.UsePassword](ZipFileUsePassword.md)   Sets the password to use for compressing. | All   5.1 |
| [ZipFile.WriteContainer](ZipFileWriteContainer.md)   Writes a file to the zip archive with content from a container. | All   3.4 |
| [ZipFile.WriteFile](ZipFileWriteFile.md)   Reads a file and writes it to the zip archive. | All   3.4 |
| [ZipFile.WriteHex](ZipFileWriteHex.md)   Writes data into the zip archive. | All   3.4 |
| [ZipFile.WriteText](ZipFileWriteText.md)   Writes a text into the zip archive. | All   3.4 |

43 functions shown.

These functions require a license (100%).

### Blog Entries

- [Build archives on the fly](https://www.mbsplugins.de/archive/2023-02-27/Build_archives_on_the_fly/monkeybreadsoftware_blog_filemaker)

### FileMaker Magazin

- [Ausgabe 1/2016, Seite 32](https://filemaker-magazin.de/neuigkeit/3870-Appetithappen-FMM_201601)
- [Ausgabe 6/2013, Seite 31 bis 33](https://filemaker-magazin.de/neuigkeit/3712-Appetithappen-FMM_201306)
- [Ausgabe 5/2013, Seite 21 bis 22](https://filemaker-magazin.de/neuigkeit/3701-Appetithappen-FMM_201305)

[HTML Version](component_Compression.shtml)