-
Fuse
- Fuse Basics
- Fuse Studio
- Tutorial (ES6 Models)
- Tutorial (Legacy Observables API)
- Full Reference
- UX Markup
- XCode & Android Studio Integration
- Primitives
- Charting
- Layout
- Controls
- Scripting & Data
- Observables
- Navigation
- JavaScript APIs
- Resources
- Triggers & Animation
- Effects
- Native interop (Uno)
- Alive UX Kit
- Technical corner
ImageTools.getBase64FromImage(image) Method (JS)
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