Reference > Functions reference > Container functions > Base64Encode
 
Base64Encode
Purpose 
Returns the contents of the specified field as text in Base64 format.
Format 
Base64Encode(sourceField)
Parameters 
sourceField - the name of a field.
Data type returned 
text
Originated in 
FileMaker Pro 13.0
Description 
Base64Encode adds a line break after every 76 characters.
Base64 encoding does not retain the filename or extension of encoded container field content.
Example 1 
Base64Encode(Products::Color) returns QmxhY2s= when Products::Color is set to "Black".
Example 2 
Base64Encode(Products::Container) returns a string that begins with iVBORw0KGgoAAAANSUhEUgAAAB8 when Products::Container is set to Help button. The Base64 string in this example was shortened for readability.
Related topics 
Base64Decode
Functions reference (category list)
Functions reference (alphabetical list)
About formulas
About functions
Defining calculation fields
Using operators in formulas