Skip to content

Instantly share code, notes, and snippets.

@podo
Created January 5, 2014 14:10
Show Gist options
  • Save podo/8268625 to your computer and use it in GitHub Desktop.
Save podo/8268625 to your computer and use it in GitHub Desktop.
file encoding to base64
echo -n `cat file.png` | base64 | pbcopy
openssl base64 < path/to/file.png | tr -d '\n' | pbcopy
cat path/to/file.png | openssl base64 | tr -d '\n' | pbcopy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment