Hi Sambath,
Please confirm us whether you need to set the Bitmap image in diagram background in the server side or you need to create a BPMN node in the server side.
Regards,
Shyam G
function save() {
var diagram = $("#diagram1").ejDiagram("instance");
var saving = diagram.save();
for (i = 0; i < saving.nodes.length; i++) {
var node = saving.nodes[i];
//iterate the node inEdges
for (j = 0; j < node.inEdges.length; j++) {
}
//iterate the node outEdges
for (k = 0; k < node.outEdges.length; k++) {
}
}
//to get an image URL
var image = exportDiagram();
}
function exportDiagram() {
var diagram = $("#diagram1").ejDiagram("instance");
var options = {
fileName: "diagram",
//Specifies whether to export as files/data
mode: "data"
};
var dataURL = diagram.exportDiagram(options);
return dataURL;
}
Sample:http://www.syncfusion.com/downloads/support/forum/123562/ze/serializesavesample1023352543
Regards,
Shyam G