Returns data as text in the specified Base64 format.
Base64EncodeRFC ( RFCNumber ; data )
RFCNumber
- a number representing the IETF RFC standard of the Base64 format to use.
data
- any text expression or field.
text
FileMaker Pro 16.0
This function is similar to Base64Encode, except that you can specify the formatting to use.
For the RFCNumber
parameter, use one of the following values to specify the RFC standard to follow for formatting Base64-encoded text. If you use an unrecognized value, this function defaults to RFC 4648.
| Encodes text with |
1421 | Maximum line length of 64 and CRLF (carriage return, line feed) line endings |
2045 | Maximum line length of 76 and CRLF line endings |
3548 | No line breaks added |
4648 | No line breaks added |
4880 | Maximum line length of 76, CRLF line endings, and an appended 24-bit CRC value |
•This function is not supported in runtime solutions and returns "?".
Base64EncodeRFC ( 4648 ; Products::Color )
returns QmxhY2s= when Products::Color is set to "Black".
Base64EncodeRFC ( 1421 ; Products::Container )
returns a string whose first line is the following when Products::Container is set to .
iVBORw0KGgoAAAANSUhEUgAAAB8AAAARCAYAAAAlpHdJAAAAAXNSR0IArs4c6QAA
Each 64-character line ends with carriage return and line feed characters.