Base64.encodeBuffer(arrayBuffer) Method (JS)
Encodes given array buffer to base64.
var Base64 = require("FuseJS/Base64");
var data = new ArrayBuffer(4);
var view = new Int32Array(data);
view[0] = 0x1337;
console.log(Base64.encodeBuffer(data));
Location
- Namespace
- FuseJS
- Package
- FuseJS 2.9.1
Returns
String
A base64 encoded string