Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
11.4
11.5
12.0
12.1
12.2
12.3
12.4
12.5
13.0
13.1
Statistic
FMM
Blog
Container.GetTypes
Returns the list of objects in the container field.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Container | 1.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameters
Parameter | Description | Example |
---|---|---|
Container | The container field or value to inspect. |
Result
Returns types or error.
Description
Returns the list of objects in the container field.FileMaker stores a copy of the image in the container field as a JPEG if the image is not already of that type. That is why you will always see JPEG in the list of Types, even if the image in question is a PNG. This function will have "FILE" in the list of types if the image has File inserted into it.
Some of the allowed types include "TIFF", "PDF ", "PNGf", "GIFf", "BMPf", "EPS ", "PICT", "FILE" and "JPEG".
"ZLIB" is the type used by compressed containers.
This function does not work for unencrypted external containers.
Examples
Get Types
MBS( "Container.GetTypes" ; ContainerField )
Query PDF URL if there is PDF, otherwise use picture for data URL:
Let ( [
// take it from source container field
Container = ContainerField;
// now check what's inside
types = MBS( "Container.GetTypes"; Container );
// has PDF content?
Container = If(Position(types; "PDF "; 1; 1) > 0;
// extract PDF part
MBS( "Container.ExtractStream"; ContainerField; "PDF "; "test.pdf"; "PDF " );
// otherwise use container as is
Container);
// now make URL
result = MBS("Container.GetDataURL"; Container)
];result)
See also
- Container.GetCount
- Container.GetHex
- Container.GetName
- Container.GetTypeSize
- Container.GetWidth
- Container.Remove
- Container.RenameStream
- DynaPDF.GeneratePreview
- PDFKit.GeneratePreview
- XL.Book.GetPicture
Example Databases
- Containers/Archive Container
- Containers/Container Remove Test
- Containers/Containers
- DynaPDF/Generate Previews
- DynaPDF/Optimize PDF
- Mac and iOS/PDFKit/PDFKit Print Documents
- Window/PDF from Window (Mac)
Blog Entries
- Render pictures from PDF
- Convert HEIF images if needed
- FileMaker and PDF Containers
- Compressed Containers
- Filemaker: Export Text to File
- MBS Filemaker Plugin 2.1 prerelease 2
This function checks for a paid license.
Created 18th August 2014, last changed 27th July 2021
