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.