LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Need help with http "Content-Encoding:deflate" (decompressing data)

 

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.

 

0 Kudos
Message 1 of 2
(1,990 Views)

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

0 Kudos
Message 2 of 2
(1,987 Views)