Reference > Functions reference > Container functions > Base64Encode
 

Base64Encode

Returns data as text in Base64 format.

Format 

Base64Encode ( data )

Parameters 

data - any text expression or field.

Data type returned 

text

Originated in 

FileMaker Pro 13.0

Description 

This function converts text in text fields, variables, and calculations to UTF-8 format before encoding it (container data is not converted before encoding it). Base64Encode follows the RFC 2045 standard for formatting Base64-encoded text. See Base64EncodeRFC function.

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 function

Functions reference (category list)

Functions reference (alphabetical list)

About formulas

About functions

Defining calculation fields

Using operators in formulas