Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

Container.Decompress

Decompresses a container value.

Component Version macOS Windows Linux Server iOS SDK
Container 5.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "Container.Decompress"; ContainerValue )   More

Parameters

Parameter Description Example
ContainerValue The container value to decompress.

Result

Returns container value or error.

Description

Decompresses a container value.
If you pass a compressed container value, this function will decompress it and return the container value with uncompressed data.

Compressed containers can be detected by looking if the type list returned by Container.GetTypes contains an item named ZLIB. You can use Container.GetTypeSize to query the size of compressed data alone.

Does not work with FileMaker's compressed plugins in a container.

Examples

Decompress container:

Set Field [Container Compression::Decompressed; MBS("Container.Decompress"; Container Compression::Compressed)]

Decode hex encoded zlib compressed PDF in a text field:

Set Field [ PDF::PDFFile ; MBS( "Container.Decompress"; MBS( "Container.RenameStream"; MBS( "Container.DecodeFromHex"; "FILE"; PDF::PDF_hex; "test.pdf"); "FILE"; "ZLIB" )) ]

See also

Release notes

Example Databases

Blog Entries

This function is free to use.

Created 15th September 2015, last changed 1st May 2022


Container.DecodeFromHex - Container.Deserialize