Integration Server 10.5 | Built-In Services Reference Guide | String Folder | Summary of Elements in this Folder | pub.string:base64Encode
 
pub.string:base64Encode
WmPublic. 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 pub.string: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. For more information about MTOM implementations, refer to Web Services Developer’s Guide.