Syntax

string llStringToBase64( string str );

Forced delay: 0.0 seconds. Energy: 10.0.

Parameters

string str

If extra bits are needed to complete the last base64 symbol, those extra bits will be zero.
To go in the other direction, use llBase64ToString.

Return value

Returns a string Base64 representation of the str interpreted as an UTF-8 byte sequence

Examples

integer getStringBytes(string msg) {
    return (llStringLength((string)llParseString2List(llStringToBase64(msg), ["="], [])) * 3) >> 2;
}

See also

Functions