Reference > Functions reference > Container functions > Base64Decode
 
Base64Decode
Purpose 
Returns either container or text content from text encoded in Base64 format.
Format 
Base64Decode(text{;fileNameWithExtension})
Parameters 
text - Base64 text to decode.
fileNameWithExtension - the filename and extension for the file created from the decoded Base64 text.
Data type returned 
text, container
Originated in 
FileMaker Pro 13.0
Description 
Base64 encoding does not retain the filename or extension of encoded content, so you can use the fileNameWithExtension parameter to specify this information if you store the returned content of Base64Decode in a container field. If a filename and extension are not specified, Base64Decode returns text rather than container content.
Examples 
Base64Decode(Products::Base64;"question.png") returns Help button when Products::Base64 is set to a string that begins with "iVBORw0KGgoAAAANSUhEUgAAAB8". The Base64 string in this example was shortened for readability.
Related topics 
Base64Encode
Functions reference (category list)
Functions reference (alphabetical list)
About formulas
About functions
Defining calculation fields
Using operators in formulas