I encountered an interesting situation where I received a PNG image as a response from a REST call in ServiceNow. The response seems to be filled with junk characters, making it difficult to work with as shown below. My goal is to write a server script that can take this response, convert it into a string, and then return it to the client UI action script to render the image back on the UI page. I have searched for similar cases but couldn't find any. If anyone has faced a similar situation before, please share your insights. Any help would be greatly appreciated.
REST Response:
IHDRU bKGD IDATx{\T o"r("r J(/LfSyˬcio xT
S$=JOGE1 xA@ T \g53kX}? >ʞg<ڿ /_V Лhj A A rRoݻwS! %...