Skip to content

Instantly share code, notes, and snippets.

@kjunichi
Created September 21, 2012 04:57
Show Gist options
  • Save kjunichi/3759797 to your computer and use it in GitHub Desktop.
Save kjunichi/3759797 to your computer and use it in GitHub Desktop.
RingoJSでのBase64エンコード ref: http://qiita.com/items/a55a723ac6dc8551707f
var bytearray = new ByteArray();
var ch;
...
bytearray.push(ch);
var base64 = require('ringo/base64');
var base64str = base64.encode(bytearray);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment