Base64 decode data: Difference between revisions

Content added Content deleted
m (BaCon moved to the BASIC section.)
Line 126: Line 126:
<pre>To err is human, but to really foul things up you need a computer.
<pre>To err is human, but to really foul things up you need a computer.
-- Paul R. Ehrlich</pre>
-- Paul R. Ehrlich</pre>

=={{header|BaCon}}==
Using the result from the [[Base64 encode data]] task as requested, but the result is abbreviated in the code below.
<syntaxhighlight lang="bacon">data$ = "AAABAAIAEBAAAAAAAABoBQAAJgAAACAgAAAAAAAAqAgAAI4FAAAoAAAAE.......QAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAE="
ico$ = B64DEC$(data$)
BSAVE ico$ TO "favicon.ico" SIZE LEN(ico$)</syntaxhighlight>


=={{header|Bash}}==
=={{header|Bash}}==
Line 190: Line 184:
done
done
done</syntaxhighlight>
done</syntaxhighlight>

=={{header|BASIC}}==
==={{header|BaCon}}===
Using the result from the [[Base64 encode data]] task as requested, but the result is abbreviated in the code below.
<syntaxhighlight lang="bacon">data$ = "AAABAAIAEBAAAAAAAABoBQAAJgAAACAgAAAAAAAAqAgAAI4FAAAoAAAAE.......QAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAE="
ico$ = B64DEC$(data$)
BSAVE ico$ TO "favicon.ico" SIZE LEN(ico$)</syntaxhighlight>


=={{header|C}}==
=={{header|C}}==