Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    base64-decode() Function (slax Namespace)

    Namespaces

    http://xml.libslax.org/slax

    SLAX Syntax

    string slax:base64-encode(string, <control-string>)

    Release Information

    Function introduced in version 1.1 of the SLAX language, which is supported in Junos OS Release 12.2 and later releases.

    Description

    Decode BASE64 encoded data. BASE64 is a means of encoding arbitrary data into a radix-64 format that is more easily transmitted, typically using STMP or HTTP.

    Include the optional control string argument to replace any non-XML control characters in the decoded string with the specified string. If the argument is an empty string, non-XML characters are removed. The decoded data is returned to the caller.

    Parameters

    control-string
    —

    (Optional) String to replace non-XML control characters in the decoded string. Use an empty string argument to remove the non-XML characters.

    string
    —

    BASE64 encoded data.

    Return Value

    string
    —

    Decoded data.

    —

    Usage Examples

    var $real-data = slax:base64-decode($encoded-data, "@");

    Published: 2013-03-05