Dave's Brain

Browse - computer tips - encode base64 file

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.
What this info useful to you? You can donate to say thanks

Add a comment

Sign in to add a comment
Copyright © 2008-2012, 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.
Advertisements: