GNU bug report logs -
#37665
Concatenation of gzip compressed bytearray
Previous Next
Reported by: Zhu Li <zhu.andrew.li <at> gmail.com>
Date: Tue, 8 Oct 2019 15:52:02 UTC
Severity: normal
Done: Paul Eggert <eggert <at> cs.ucla.edu>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your message dated Tue, 8 Oct 2019 09:52:31 -0700
with message-id <427f9954-ace6-c8f1-d6ae-fa9cae019bd4 <at> cs.ucla.edu>
and subject line Re: bug#37665: Concatenation of gzip compressed bytearray
has caused the debbugs.gnu.org bug report #37665,
regarding Concatenation of gzip compressed bytearray
to be marked as done.
(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)
--
37665: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=37665
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
[Message part 3 (text/plain, inline)]
Hello there,
Our team has a use case where we want to concatenate gzip-compressed byte
arrays. We do compression with GZIPOutputStream.java with Java 8 and
decompression with GZIPInputStream.java.
In a simple test case I compressed several instances of byte[] with
GZIPOutputStream and output the compressed results to several instances of
byte[], and then put all of them into a ByteBuffer. Then I tried to
decompress the concatenated data in the final ByteBuffer with
GZIPInputStream.
And I found that sometimes this works as expected but other times the last
few instances of input byte[] are ignored by GZIPInputStream(it seems to
get EOF at the end of a compressed byte[], which is not the last compressed
byte[] in the ByteBuffer) I was testing with the default setting.
So does this mean that GZIPInputStream and GZIPOutputStream don't support
such operation by design or is there something we can configure/change for
this to work?
Regards,
Zhu
[Message part 4 (text/html, inline)]
[Message part 5 (message/rfc822, inline)]
On 10/8/19 8:28 AM, Zhu Li wrote:
> does this mean that GZIPInputStream and GZIPOutputStream don't support
> such operation by design
Sorry, but you seem to be writing about some gzip-compatible software,
not about gzip itself. Please write to whoever maintains that other
software, instead of to bug-gzip.
This bug report was last modified 5 years and 285 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.