Created
September 21, 2012 04:57
-
-
Save kjunichi/3759797 to your computer and use it in GitHub Desktop.
RingoJSでのBase64エンコード ref: http://qiita.com/items/a55a723ac6dc8551707f
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var bytearray = new ByteArray(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var ch; | |
... | |
bytearray.push(ch); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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