Read a bundled file as an ArrayBuffer of bytes

var Observable = require("FuseJS/Observable");
var Bundle = require("FuseJS/Bundle");
var ImageTools = require("FuseJS/ImageTools");
var imageUrlToDisplay = Observable();

Bundle.readBuffer("assets/image.jpg").then(function(buffer) {
    //Do something with the image data here
});

Location

Namespace
FuseJS
Package
FuseJS 1.11.2

Returns

Promise

A promise of an ArrayBuffer of data