Encodes the given image as a base64 string.

Example

// Here we assume that we have an existing `image` object
var ImageTools = require("FuseJS/ImageTools");
ImageTools.getBase64FromImage(image)
    .then(function(base64Image) { console.log("The base64 encoded image is \"" + base64Image + "\""); });

Location

Namespace
Fuse.ImageTools
Package
Fuse.ImageTools 1.9.0

Returns

Promise

a Promise of a string of base64 data