Decode base64 into a binary you can use

Posted by auburn on April 17th, 2009 — Posted in miscellaneous tech

If you need to convert/decode a picture that is in base64 code, drop the code into file.txt and run the following command.
perl -MMIME::Base64 -ne 'print decode_base64($_)' < file.txt > out.pic
source