Search
DomUtils.toDataUrl Method
See Also
 





Converts an image to base64 string.

Namespace: MindFusion.Controls
Package: DomUtils.js

 Syntax

JavaScript  Copy Code

function toDataUrl (url, callback)

 Parameters

url

String. The url of the image.

callback

function. The callback function.

 Return Value

String. The base64-encoded string, representing the image.

 See Also