AnsweredAssumed Answered

process instances diagram from REST-API

Question asked by yerbol777 on Apr 7, 2016
Latest reply on Apr 7, 2016 by yerbol777
Hello,

I am trying to draw process diagram by getting respone from Activiti Rest API with ajax: GET runtime/process-instances/{processInstanceId}/diagram
And getting repsponse of data in image/png. Now question is how to convert data to image format using ajax?

Tried this:
var data = "data:image/png;" + hr.responseText;
document.getElementById("image").src = data;
not working…

Response starts with: PNG … (i've put as attachment)


Thank you. 

Outcomes