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: 10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2   11.3   11.4    Statistic    FMM    Blog  

Container.GetDataURL

Returns the complete Data url for an image stored in a container field.

Component Version macOS Windows Linux Server iOS SDK
Container 1.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "Container.GetDataURL"; container )   More

Parameters

Parameter Description Example
container The container field or value to inspect.

Result

Returns Container or error.

Description

Returns the complete Data url for an image stored in a container field.
This is very useful for displaying images in web pages. The function tries to make data urls from the images in the container field in the following order: Tiff, PNG, PDF, GIF, JPEG Unfortunately, FileMaker on Windows XP doesn't display image urls very well since it is based on Internet Explorer which doesn't like Image URLs.
In plugin version this also works for referenced JPEG images.

Examples

Get URL for only PDF part and ignore JPEG/PNG previews:

MBS("Container.GetDataURL"; MBS( "Container.ExtractStream"; ContainerField; "PDF "; "test.pdf"; "PDF " ))

See also

Example Databases

Blog Entries

Created 18th August 2014, last changed 27th July 2021


Container.GetCount - Container.GetHeight

Feedback: Report problem or ask question.