Skip to content

Instantly share code, notes, and snippets.

@podo
Created January 5, 2014 14:10
Show Gist options
  • Select an option

  • Save podo/8268625 to your computer and use it in GitHub Desktop.

Select an option

Save podo/8268625 to your computer and use it in GitHub Desktop.

Revisions

  1. podo created this gist Jan 5, 2014.
    3 changes: 3 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    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