Component: Container 
---------------------

Functions to work on containers.

| Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|
| [1.3](newinversion13.md "First functions introduced with version 1.3.") / [15.5](newinversion155.md "Newest functions in version 15.5.") | ✅ Yes | ✅ Yes | ✅ 92% | ✅ 98% | ✅ 98% |

  
| Item | Details | Server |
|:--|:--|:--|
| [Container.Compress](ContainerCompress.md)   Compresses a container value. | All   5.3 | ✅ Server |
| [Container.DecodeFromBase64](ContainerDecodeFromBase64.md)   Decodes data from base64 text into a container value. | All   4.4 | ✅ Server |
| [Container.DecodeFromHex](ContainerDecodeFromHex.md)   Decodes data from hex text into a container value. | All   6.5 | ✅ Server |
| [Container.Decompress](ContainerDecompress.md)   Decompresses a container value. | All   5.3 | ✅ Server |
| [Container.Deserialize](ContainerDeserialize.md)   Restores a serialized container value. | All   5.2 | ✅ Server |
| [Container.Export](ContainerExport.md)   Writes selected data content from a container to a file path. | All   1.6 | ✅ Server |
| [Container.ExtractStream](ContainerExtractStream.md)   Extracts a single frame and returns as new container value. | All   4.3 | ✅ Server |
| [Container.GetBase64](ContainerGetBase64.md)   Returns the base 64 encoded value of the container. | All   1.4 | ✅ Server |
| [Container.GetCount](ContainerGetCount.md)   Counts the number of types in a container field. | All   1.4 | ✅ Server |
| [Container.GetDataURL](ContainerGetDataURL.md)   Returns the complete Data url for an image stored in a container field. | All   1.4 | ✅ Server |
| [Container.GetHeight](ContainerGetHeight.md)   Returns the Height of the image in pixels. | All   1.3 | ✅ Server |
| [Container.GetHex](ContainerGetHex.md)   Returns the hex encoded value of the container. | All   6.5 | ✅ Server |
| [Container.GetJPEGHeight](ContainerGetJPEGHeight.md)  **Deprecated**    Returns the Height of JPEG image stored in a container field. | All   1.3 | ✅ Server |
| [Container.GetJPEGHeightResolution](ContainerGetJPEGHeightResolution.md)  **Deprecated**    Returns the Vertical Resolution of the JPEG image stored in a container field in pixels per inch. | All   1.3 | ✅ Server |
| [Container.GetJPEGWidth](ContainerGetJPEGWidth.md)  **Deprecated**    Returns the Width of JPEG image stored in a container field. | All   1.3 | ✅ Server |
| [Container.GetJPEGWidthResolution](ContainerGetJPEGWidthResolution.md)  **Deprecated**    Returns the Horizontal Resolution of the preview image stored in a container field in pixels per inch. | All   1.3 | ✅ Server |
| [Container.GetMimeType](ContainerGetMimeType.md)   Returns the mime type for an image stored in a container field. | All   15.5 | ✅ Server |
| [Container.GetName](ContainerGetName.md)   Queries the path list from a container. | All   3.0 | ✅ Server |
| [Container.GetResolution](ContainerGetResolution.md)   Queries the DPI settings stored in a container. | All   4.2 | ✅ Server |
| [Container.GetSize](ContainerGetSize.md)   Returns the size of the container. | All   1.4 | ✅ Server |
| [Container.GetText](ContainerGetText.md)   Returns the text value of the container data. | All   7.2 | ✅ Server |
| [Container.GetTotalSize](ContainerGetTotalSize.md)   Returns the size of the whole container in bytes. | All   1.3 | ✅ Server |
| [Container.GetType](ContainerGetType.md)   Returns the type at the given index (zero based). | All   1.4 | ✅ Server |
| [Container.GetTypeSize](ContainerGetTypeSize.md)   Returns the size of the indicated object type in container field. | All   1.3 | ✅ Server |
| [Container.GetTypes](ContainerGetTypes.md)   Returns the list of objects in the container field. | All   1.3 | ✅ Server |
| [Container.GetWidth](ContainerGetWidth.md)   Returns the Width of the image in pixels. | All   1.3 | ✅ Server |
| [Container.IdentifyData](ContainerIdentifyData.md)   Checks file type from the data. | All   14.0 | ✅ Server |
| [Container.IsCompressed](ContainerIsCompressed.md)   Queries whether container is compressed. | All   7.5 | ✅ Server |
| [Container.ReadArchive](ContainerReadArchive.md)   Reads an archived container. | All   4.4 | ✅ Server |
| [Container.ReadFile](ContainerReadFile.md)   Reads a file with the given path. | All   6.4 | ✅ Server |
| [Container.ReadImage](ContainerReadImage.md)   Reads and convert image. | Mac/Win/iOS   8.4 | ✅ Server |
| [Container.ReadImageFile](ContainerReadImageFile.md)   Reads and convert image file. | Mac/Win/iOS   11.2 | ✅ Server |
| [Container.Remove](ContainerRemove.md)   Removes a stream from container value. | All   3.3 | ✅ Server |
| [Container.RemovePreview](ContainerRemovePreview.md)   Removes the preview from a container value. | All   14.2 | ✅ Server |
| [Container.Rename](ContainerRename.md)   Renames the file path in a container value. | All   3.0 | ✅ Server |
| [Container.RenameStream](ContainerRenameStream.md)   Renames a stream in a container. | All   4.3 | ✅ Server |
| [Container.Screenshot](ContainerScreenshot.md)   Takes screenshot from a named control in FileMaker. | Mac/Win   11.4 | ❌ Server |
| [Container.Serialize](ContainerSerialize.md)   Serialized a container as a text. | All   5.2 | ✅ Server |
| [Container.WriteArchive](ContainerWriteArchive.md)   Writes an archive with container value. | All   4.4 | ✅ Server |
| [Container.WriteFile](ContainerWriteFile.md)   Writes a file with the given container. | All   6.4 | ✅ Server |

40 functions shown.

These functions require a license (62%).

### Release notes

- **Version 15.5**
    - Added [Container.GetMimeType](https://www.mbsplugins.eu/ContainerGetMimeType.shtml) function.
    - Improved [Container.GetDataURL](https://www.mbsplugins.eu/ContainerGetDataURL.shtml) to recognize more types.
- **Version 15.2**
    - Changed [Container.GetHex](https://www.mbsplugins.eu/ContainerGetHex.shtml) to have name or index parameter optional.
    - Improved [Container.GetBase64](https://www.mbsplugins.eu/ContainerGetBase64.shtml) to work better if you don't specify a name or index.
    - Improved functions like [Container.ReadFile](https://www.mbsplugins.eu/ContainerReadFile.shtml) to return empty result if file size is zero.
- **Version 15.0**
    - Fixed a problem with [Container.IdentifyData](https://www.mbsplugins.eu/ContainerIdentifyData.shtml) not recognizing a HEIF file.
- **Version 14.5**
    - Improved [Container.ReadImage](https://www.mbsplugins.eu/ContainerReadImage.shtml) to read HEIC images on iOS.
- **Version 14.2**
    - Added [Container.RemovePreview](https://www.mbsplugins.eu/ContainerRemovePreview.shtml) function to remove preview from container.
- **Version 14.1**
    - Fixed a problem in [Container.Decompress](https://www.mbsplugins.eu/ContainerDecompress.shtml) function.
- **Version 14.0**
    - Added [Container.IdentifyData](https://www.mbsplugins.eu/ContainerIdentifyData.shtml), [Files.IdentifyData](https://www.mbsplugins.eu/FilesIdentifyData.shtml) and [Text.IdentifyData](https://www.mbsplugins.eu/TextIdentifyData.shtml) functions.
- **Version 13.1**
    - Added Windows support for [Container.ReadImage](https://www.mbsplugins.eu/ContainerReadImage.shtml) and [Container.ReadImageFile](https://www.mbsplugins.eu/ContainerReadImageFile.shtml) functions to e.g. load HEIF/HEIC files on Windows.
    - Fixed a problem with [Container.ReadImage](https://www.mbsplugins.eu/ContainerReadImage.shtml) function returning error about NSRange being wrong.
    - Fixed ScreenshotRect, [Container.Screenshot](https://www.mbsplugins.eu/ContainerScreenshot.shtml) and [WebView.Screenshot](https://www.mbsplugins.eu/WebViewScreenshot.shtml) for Windows to better use right DPI for high DPI screens.
- **Version 12.3**
    - Changed [Container.GetDataURL](https://www.mbsplugins.eu/ContainerGetDataURL.shtml) function to use right mime type for WebP images.
    - Fixed [Container.GetBase64](https://www.mbsplugins.eu/ContainerGetBase64.shtml) function to work without error and only container parameter.

### Blog Entries

- [Container](https://www.mbsplugins.de/archive/2022-10-20/Container/monkeybreadsoftware_blog_filemaker)
- [Combine MBS functions to automate processes in FileMaker](https://www.mbsplugins.de/archive/2019-04-11/Combine_MBS_functions_to_autom/monkeybreadsoftware_blog_filemaker)
- [MBS Filemaker Plugin Overview](https://www.mbsplugins.de/archive/2011-04-14/MBS_Filemaker_Plugin_Overview/monkeybreadsoftware_blog_filemaker)

### FileMaker Magazin

- [Ausgabe 2/2025, Seite 24 bis 25](https://filemaker-magazin.de/neuigkeit/4286-Appetithappen-FMM_202502)
- [Ausgabe 2/2025, Seite 18 bis 19](https://filemaker-magazin.de/neuigkeit/4286-Appetithappen-FMM_202502)
- [Ausgabe 6/2024, Seite 37](https://filemaker-magazin.de/neuigkeit/4277-Appetithappen-FMM_202406)
- [Ausgabe 3/2024, Seite 31](https://filemaker-magazin.de/neuigkeit/4263-Appetithappen-FMM_202403)
- [Ausgabe 6/2020, Seite 32](https://filemaker-magazin.de/neuigkeit/4118-Appetithappen-FMM_202006)
- [Ausgabe 4/2020, Seite 33](https://filemaker-magazin.de/neuigkeit/4103-Appetithappen-FMM_202004)
- [Ausgabe 6/2018, Seite 30 bis 31](https://filemaker-magazin.de/neuigkeit/4025-Appetithappen-FMM_201806)

### Example Databases

- [Drag and Drop/Better drag file from Container](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Drag%20and%20Drop/Better%20drag%20file%20from%20Container.shtml#2ScriptAnchor_)
- [Drag and Drop/DragTest Popover](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Drag%20and%20Drop/DragTest%20Popover.shtml#5ScriptAnchor_)
- [DynaPDF/Extract and analyze images](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/Extract%20and%20analyze%20images.shtml#3ScriptAnchor_)
- [DynaPDF/Generate Previews](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/Generate%20Previews.shtml#1294FieldAnchor_)
- [DynaPDF/Place Picture](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/Place%20Picture.shtml#1ScriptAnchor_)
- [DynaPDF/ZUGFeRD and Facture-X/ZUGFeRD Rechnung erstellen](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/ZUGFeRD%20and%20Facture-X/ZUGFeRD%20Rechnung%20erstellen.shtml#8ScriptAnchor_)
- [iOS/Examples/SharingPanel](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/iOS/Examples/SharingPanel.shtml#2ScriptAnchor_)
- [Mac and iOS/MapKit/MapView BeeExample](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20and%20iOS/MapKit/MapView%20BeeExample.shtml#6ScriptAnchor_)
- [Mac and iOS/PDFKit/Printing iOS](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20and%20iOS/PDFKit/Printing%20iOS.shtml#11ScriptAnchor_)
- [SmartCard/Belgian EID Reader](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/SmartCard/Belgian%20EID%20Reader.shtml#3ScriptAnchor_)

[HTML Version](component_Container.shtml)