Truncated Output From Gzipinputstream On Android
I must be doing something really wrong. Running following code on Android it produces truncated file (_items_) without any exceptions or problems in the log. Running the same code
Solution 1:
The AOSP bug has been updated with analysis by an engineer from the Dalvik team.
Summary: the gzip stream has multiple members concatenated together, and the decompressor is expected to process them all, but Dalvik's implementation is stopping after the first.
Unless there's a way to convince the data source to compress its streams differently, you will need to find a replacement for GZIPInputStream
.
Solution 2:
Workaround is to use GZIPInputStream
from JZlib (currently only in concatenated_gzip_streams
branch). See https://github.com/ymnk/jzlib/issues/12 for more details.
Post a Comment for "Truncated Output From Gzipinputstream On Android"