D
dkode8
Hello all,
I have a file, that is gzipped. I can decompress the file, take the
bytes read and write them to another stream. the only problem is when I
write the data to another file, the size of the byte array to write is
equivalent to the COMPRESSED file size, and not the DECOMPRESSED file
size. The examples on MSDN (which are moronic) ASSUME that you know the
size of the decompressed archive. In my particular instance, I dont
know the decompressed file size.
Is there any way to read header information or such of the compressed
archive so I know how much data to write out to my decompressed file
after I read the data from my gzip archive?
If you need more information, please let me know.
thanks
Sean
I have a file, that is gzipped. I can decompress the file, take the
bytes read and write them to another stream. the only problem is when I
write the data to another file, the size of the byte array to write is
equivalent to the COMPRESSED file size, and not the DECOMPRESSED file
size. The examples on MSDN (which are moronic) ASSUME that you know the
size of the decompressed archive. In my particular instance, I dont
know the decompressed file size.
Is there any way to read header information or such of the compressed
archive so I know how much data to write out to my decompressed file
after I read the data from my gzip archive?
If you need more information, please let me know.
thanks
Sean