AnsweredAssumed Answered

Help:how to show PNG image of a process using REST api?

Question asked by jolly_ian on Feb 17, 2013
Latest reply on May 7, 2015 by jbarrez
I want to create an HTML website using the REST APIs with JQuery and Ajax. Till now every thing works fine except that I cannot display the image of a process in HTML client.

The problem originates from the fact that the rest API itself is the url to the image, but when I set the source of the image to this url, it fails to display, because there is no authentication and thus the Rest server does not reply correctly.

When I do the request in JQuery, I do can get the binary data of the image, because JQuery helps me add an authentication header to the request. I have tried the BASE-64 method that may display binary data directly in HTML, but the PNG that the Activiti server returned was too big to be displayed.

Is there any one who has successfully displayed the PNG image with the REST APIs?

Thanks for your attention. :)

Outcomes