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:
12.1
12.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
13.4
Statistic
FMM
Blog
Returns the base 64 encoded value of the container.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Container | 1.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example | Flags |
---|---|---|---|
Container | The container field or value to inspect. | MyTable::MyContainerField | |
Name or Index | either the name of the Type or it's index. Version 12.2 returns main item if this parameter is empty. |
0 | Optional |
Returns data or error.
Get PNG image in Container as Base64:
MBS( "Container.GetBase64"; MyTable::MyContainerField; "PNGf" )
Get JPEG image in Container as Base64:
MBS( "Container.GetBase64"; MyTable::MyContainerField; "JPEG" )
From PDF in Base64 to a PNG in Base64:
# decode some PDF in base64 text
Set Variable [$PDFData; Value:MBS( "Container.DecodeFromBase64"; "PDF"; PDF_ToPNG::base64_PDF; "test.pdf" )]
# render first page to a picture in PNG format
Set Variable [$PNGData; Value:MBS( "PDFKit.GetPDFPageImage"; $PDFData; 0; "PNG"; "test.png"; 150; 1; 0)]
# encode PNG as Base64
Set Variable [$EncodedPNG; Value:MBS( "Container.GetBase64"; $PNGData; "PNGf" )]
# store text in a field
Set Field [PDF_ToPNG::Convert_text; $EncodedPNG]
Get Container as Base64:
MBS( "Container.GetBase64"; MyTable::MyContainerField )
This function checks for a license.
Created 18th August 2014, last changed 16th April 2022