Revision Difference
util.Base64Decode#527287
<function name="Base64Decode" parent="util" type="libraryfunc">
<description>Decodes the specified string from base64.</description>
<realm>Shared and Menu</realm>
<added>2020.04.29</added>
<args>
<arg name="str" type="string">String to decode.</arg>
</args>
<rets>
<ret name="" type="string">The raw bytes of the decoded string.</ret>
</rets>
</function>
<example>
<description>Encode string : Hello Word ! "</description>
<code>
local encode = util.Base64Decode( "Hello Word !" )
local encode = util.Base64Encode( "Hello Word !" )
print(encode)
</code>
<output>SGVsbG8gV29yZCAh</output>
</example>
<example>
<description>Decode string : SGVsbG8gV29yZCAh ( Hello Word ! ) : "</description>
<code>
local decode = util.Base64Decode( "SGVsbG8gV29yZCAh" )
print(decode)
</code>
<upload src="8e3f9/8d81149716e40c6.png" size="3072" name="example2.png" />
<output><image src="8e3f9/8d81149716e40c6.png"/></output>
</example>