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!
@Dijke,you can use tFileArchive and tFileUnarchive ,Folder to zip and unzip.
please find the below links
@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.
I'm facing exactly the same issue as @Dijke:
- I perform an API call through tRESTClient.
- The server's response has the header: content-encoding: [gzip]
-- So It's gzip compressed. The API documentation formally stipulate that clients has to activate gzip handling, because the response is always gziped.
- But tRESTClient's output schema has default values and the gzip content is cast as a string in the default field "string" . As a result, I can not read the response. Here the tLogRow Output :
Does anyone has found a solution ? Thanks.