Base64 decode data: Difference between revisions
Content deleted Content added
Add Tcl |
Added Pike implementation |
||
Line 730: | Line 730: | ||
--Paul R.Ehrlich |
--Paul R.Ehrlich |
||
</pre> |
</pre> |
||
=={{header|Pike}}== |
|||
By necessity this also implements all of the Base64 encode task to |
|||
avoid a humongous amount of icon data hardcoded in the program. |
|||
<lang Pike> |
|||
string icon = Protocols.HTTP.get_url_data("http://rosettacode.org/favicon.ico"); |
|||
string encoded = MIME.encode_base64(icon); |
|||
Stdio.write_file("favicon.ico", MIME.decode_base64(encoded)); |
|||
</lang> |
|||
=={{header|Prolog}}== |
=={{header|Prolog}}== |