Integration Cloud 6.6.0 | Built-In Services | Built-In Services | base64Encode
 
base64Encode
Converts a sequence of bytes into a Base64-encoded String.
Input Parameters
bytes
byte[ ] Sequence of bytes to encode into a Base64-encoded String.
useNewLine
String Optional. Flag indicating whether to retain or remove the line breaks. Set to:
*true to retain the line breaks. This is the default.
*false to remove the line breaks.
encoding
String Optional. Specifies the encoding method. Default value is ASCII.
Output Parameters
value
String Base64-encoded String encoded from the sequence of bytes.
Usage Notes
By default, the base64Encode service inserts line breaks after 76 characters of data, which is not the canonical lexical form expected by implementations such as MTOM. You can use the useNewLine parameter to remove the line breaks.