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 2.9.1

Returns

Promise

A promise of an ArrayBuffer of data