From Second Life Wiki
Revision as of 12:38, 22 January 2015 by Lady Sumoku (talk | contribs) (Replaced old <LSL> block with <source lang="lsl2">)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Function: string llStringToBase64( string str );

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

• 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.


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

See Also

Deep Notes

Search JIRA for related Issues


function string llStringToBase64( string str );