Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Announcement: Try the Ask AI chatbot for answers to your technical questions about Juniper products and solutions.

close
header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Automation Scripting User Guide
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

base64-decode() Function (SLAX)

date_range 13-Jan-21

Namespaces

content_copy zoom_out_map
http://xml.libslax.org/slax

SLAX Syntax

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

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

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

Release Information

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

footer-navigation