Base64 decode data: Difference between revisions

Content added Content deleted
Line 1,216: Line 1,216:
To err is human, but to really foul things up you need a computer.
To err is human, but to really foul things up you need a computer.
-- Paul R. Ehrlich
-- Paul R. Ehrlich
</pre>

=={{header|Ring}}==
<lang ring>
#======================================#
# Sample: Base64 decode data
# Author: Gal Zsolt, Mansour Ayouni
#======================================#

load "guilib.ring"

oQByteArray = new QByteArray()
oQByteArray.append("Rosetta Code Base64 decode data task")
oba = oQByteArray.toBase64().data()
see oba + nl

oQByteArray = new QByteArray()
oQByteArray.append(oba)
see oQByteArray.fromBase64(oQByteArray).data()
</lang>
{{out}}
<pre>
Um9zZXR0YSBDb2RlIEJhc2U2NCBkZWNvZGUgZGF0YSB0YXNr
Rosetta Code Base64 decode data task
</pre>
</pre>