MarkLogic 10 Product Documentation
xdmp:base64-encode

xdmp:base64-encode(
   $plaintext as xs:string
) as xs:string

Summary

Converts plaintext into base64-encoded string.

Parameters
plaintext Plaintext to be encoded.

Example

xdmp:base64-encode("slings and arrows of outrageous fortune")
=> c2xpbmdzIGFuZCBhcnJvd3Mgb2Ygb3V0cmFnZW91cyBmb3J0dW5l
Powered by MarkLogic Server | Terms of Use | Privacy Policy