base64 in.txt > out.b64Where in.txt is a file you want to encode (could be text, graphic anything) and out.b64 will be the result. This is easier than using uuencode.
Computer Tips - Linux: How do I encode a file as base64?
Date: 2011mar5
OS: Linux
Level: novice
Q. Linux: How do I encode a file as base64?
A. Use the base64 command like this: