The built-in function, ng:base64() converts a string (text) into a base64 based string. This can e.g. be used, if you want to insert any kind of data into an XML node, without substituting any characters, that are not allowed.
This function is related to the functions: ng:base64ToUTF8, ng:base64EncodeFile and ng:base64EncodeResource.
This can e.g. be used, if you want to insert dynamic images directly in the contents of an email.
Here is an example:
This XPath expression:
ng:base64('INTERFORM')
outputs this string:
SU5URVJGT1JN
Related Articles
ng:base64EncodeResource
The built-in function, ng:base64EncodeResource() converts the binary contents of a resource into base64. This can e.g. be used, if you want to insert any kind of data into an XML node, without substituting any characters, that are not allowed. This ...
ng:base64EncodeFile
The built-in function, ng:base64EncodeFile() converts the binary contents of a file into base64. This can e.g. be used, if you want to insert any kind of data into an XML node, without substituting any characters, that are not allowed. This function ...
ng:base64ToUTF8
The built-in function, ng:base64ToUTF8 converts a base64 encoded string (text) into a UTF8 based string. This can e.g. be used, if you want to extract the original UTF-8 encoded text from a base64 encoded node found in an input XML input file. If the ...
ng:base64EncodeSMBFile
The built-in Xpath function, ng:base64EncodeSMBFile encodes a file from a Windows share as a base64 string ng:base64EncodeSMBFile('Share on internal printer', '/folder/fileToCheck.EXT') The first parameter is the name of the Windows Share connection. ...
ng:translation
This section describes the built-in function: ng:translation(resource, key, locale,fallback_value) The function can be used, if you e.g. want to create a multi-language template. The function refers to one or more translate files. Another way to use ...