lzo-java icon indicating copy to clipboard operation
lzo-java copied to clipboard

reading the uncompressed size from the header

Open rBirde opened this issue 5 years ago • 1 comments

Thank you very much for providing this quite useful library. I am writing an Android program in which I need to decompress random lzo files. I am reading the uncompressed byte arrays from lzo files using LzopInputstream for the files that I know the size of the uncompressed byte array. I am wondering if you know the header structure or how could the uncompressed size be read from the header of an lzo file? I know it should be written in the header file because using "lzop --info filename" on Ubuntu returns some info about the file one of which is the uncompressed size. If the uncompressed size could be read from the header in Java, then the program could decompress any lzo file without the user knowing the uncompressed size of the file.

Thank you!

rBirde avatar Apr 29 '21 13:04 rBirde

Hi,

Is there any way to read the uncompressed byte size from an lzop compressed file?

rBirde avatar Jun 14 '21 18:06 rBirde