10 lines
468 B
Plaintext
10 lines
468 B
Plaintext
var [const] MsgHash=Import("zklMsgHash"), Curl=Import("zklCurl");
|
|
|
|
icon:=Curl().get("http://rosettacode.org/favicon.ico"); //-->(Data(4,331),693,0)
|
|
icon=icon[0][icon[1],*]; // remove header
|
|
iconEncoded:=MsgHash.base64encode(icon);
|
|
iconDecoded:=MsgHash.base64decode(iconEncoded);
|
|
File("rosettaCodeIcon.ico","wb").write(iconDecoded); # eyeball checking says good
|
|
println("Is the Rosetta Code icon the same (byte for byte) encoded then decoded: ",
|
|
icon==iconDecoded);
|