LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

GZip De-Compression failure, possible buffer oversize? File unzips in 7zip but not with the OpenG library.

Solved!
Go to solution

I released 5.0.5 of the OpenG ZIP Library with additional support for header encoding in Deflate and header decoding in Inflate.

 

Included VI can handle the entire gzip file from your first post as a whole! And it is better than just blindly cutting of 10 bytes from the file and trying to decode it without header at all, since the gzip header can contain additional information such as file name and extra stuff that you should try to properly decode if you want to make it truly gzip compliant.

Inflate GZIP Stream.png

 

Attached VI is LabVIEW 2020 and requires OpenG ZIP Library 5.0.5.

 

PS: I bet you used the Read from Text File node instead of the Read from Binary File one. This was the reason your binary gzip stream got corrupted!

Rolf Kalbermatter
My Blog
Message 11 of 11
(273 Views)