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
- Container.Compress
- Container.DecodeFromHex
- Container.GetType
- Container.GetTypes
- Container.GetTypeSize
- Container.IsCompressed
- Container.Rename
- Container.RenameStream
Release notes
- Version 14.1
- Fixed a problem in Container.Decompress function.
- Version 9.1
- Rewrote Container.Compress and Container.Decompress to work faster.
Example Databases
Blog Entries
- MBS FileMaker Plugin, version 14.1pr1
- MBS FileMaker Plugin, version 9.1pr1
- Comparing Base Elements Plugin to MBS FileMaker Plugin
- [ANN] MBS FileMaker Plugin 5.3 for OS X/Windows
- MBS FileMaker Plugin, version 5.3pr4
- Compressed Containers
This function is free to use.
Created 15th September 2015, last changed 1st May 2022