Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5    Statistic  

Container.GetDataURL

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

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Container 1.4 Yes Yes Yes Yes Yes

MBS( "Container.GetDataURL"; container )

Parameters

Parameter Description Example value
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.

Example Databases


Container.GetCount   -   Container.GetHeight

Feedback: Report problem or ask question.




Links
MBS Xojo Plugins