How to decompress base64 zlib payload

POOJA JAGADEES1
Tera Contributor

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 

0 REPLIES 0