Welcome to the Harris Geospatial product documentation center. Here you will find reference guides, help documents, and product libraries.


Harris Geospatial / Docs Center / Libraries / Galloy / mg_base64encode

mg_base64encode

mg_base64encode.pro (mglib)

Encode a string using Base64, performs the inverse operation as MG_BASE64DECODE.

Syntax


result = mg_base64encode(s)

Return value


string

Parameters


s in required type=string

string to encode

Examples


Try:

IDL> s = 'username: password' IDL> print, s, format='(%"Original string: \"%s\"")' Original string: "username: password" IDL> enc = mg_base64encode(s) IDL> print, enc, format='(%"Encoded string: \"%s\"")' Encoded string: "dXNlcm5hbWU6IHBhc3N3b3Jk" IDL> dec = mg_base64decode(enc) IDL> print, dec, format='(%"Decoded string: \"%s\"")' Decoded string: "username: password"



© 2017 Exelis Visual Information Solutions, Inc. |  Legal
My Account    |    Buy    |    Contact Us