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