MindFusion.Charting for JavaScript Programmer's Guide
DomUtils.toDataUrl Method
See Also
Collapse All Expand All Language Filter: All Language Filter: Multiple Language Filter: None Language Filter: C# Language Filter: Visual Basic Language Filter: Java Language Filter: JavaScript Language Filter: C++ Language Filter: XAML

C#
Visual Basic
Java
JavaScript
C++
XAML

Converts an image to base64 string.

Namespace: MindFusion.Controls
File: DomUtils.js

## Syntax

JavaScript Copy Code
function toDataUrl (url, callback)

### Parameters

url

  Type: String
  String. The url of the image.

callback

  Type: function
  function. The callback function.

### Return Value

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

## See Also

DomUtils Members
DomUtils Class
MindFusion.Controls Namespace