Converts an image to base64 string.
Namespace: MindFusion.Controls
File: DomUtils.js
JavaScript Copy Code |
---|
function toDataUrl (url, callback) |
String. The url of the image.
function. The callback function.
String. The base64-encoded string, representing the image.