Seven Stars

How to uncompress (inflate) gzip REST Api response?

Hi

 

Would love to know how to decompress / uncompress (inflate) gzip String?  Please : Without saving it as a zip file.

It's response of a rest-api call UTF-8 compressed 

Would be nice if there are some functions related to string-handling: package (doc) util.java zip


cheers + thanks!

 

 

2 REPLIES
Eleven Stars

Re: How to uncompress (inflate) gzip REST Api response?

@Dijke,you can use tFileArchive and tFileUnarchive ,Folder to zip and unzip.

please find the below links

https://help.talend.com/reader/iYcvdknuprDzYycT3WRU8w/4HqSCsyne6rLWociYNchDQ

https://help.talend.com/reader/WWQ40R_iTE5~~9VkUQrjgQ/7Bj99i9HHD~wcAItQuK9Zw

Manohar B
Seven Stars

Re: How to uncompress (inflate) gzip REST Api response?

@manodw , sorry, but not a proper solution. very inefficient! 

 

I get a server response (gzip) -> (allready in memory) -> disk i/o-> fileOut ->  fileIn -> disk i/o -> (unzip process) ->  back in memory
should be server response (gzip) -> (allready in memory) -> decrypt bytes in memory -> save to db / disk i/o OR do whatever I wanna do.