Dave's Brain

Browse - Computer Tips - How do I encode a file as base64?

Date: 2011mar5
Level: beginner
OS: Linux

Q.  How do I encode a file as base64?

A.  Use the base64 command like this:

base64 in.txt > out.b64
Where 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.

Add a comment

Sign in to add a comment
Copyright © 2008-2018, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.