09-12-2018 02:37 AM
Hi, I tried to use the Http_GET Vi to read data from a server, but the data returned with encoding type : deflate.
How may I decompress the data to get back the JSON string?
I have tried sending a GET request (using TCP VIs) and use "Accept-Encoding: identity" in the header, but the server seems to ignore the headers and always return a "Content-Encoding:deflate" data(as stated in the header). Hence, the only ways to go forward seems to be to decompress the returned data.
I have searched for LabVIEW decompressing method but none seems to work.
Appreciate any help/advice. Thanks.
09-12-2018 02:46 AM
There is no decompressing method available in LabVIEW. You need external tools.
The .net deflate is not working in LabVIEW since version 2014 and it is not planned to fix it...
In our Company we are actually developing a .dll that will do the job.
Good luck
Benoit