- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2024 03:02 AM
We are working on integration where the payload that we are receiving through GET method is base64 encoded, zlib compressed data. We need a way to decode this to show data in the readable/XML format.
tried in background script :
var base64Data = GlideStringUtil.base64Decode(my_string);
var data = base64Data();
gs.print(data);
the printed data is not in readable/XML format.
not sure how to decompress zlib. Any help is appreciated.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2024 04:16 AM
Hi Pooja,
It is possible by utilizing the MID Server capabilities i.e. to make MIDServer do the bidding on behalf of ServiceNow. You can use the flow designer to talk to MIDServer and decompress the zlib files.
Thanks and Regards,
Divya Mishra
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2024 04:16 AM
Hi Pooja,
It is possible by utilizing the MID Server capabilities i.e. to make MIDServer do the bidding on behalf of ServiceNow. You can use the flow designer to talk to MIDServer and decompress the zlib files.
Thanks and Regards,
Divya Mishra