C
chattycow
This message also posted on comp.lang.java.help --
I have a hopefully simple question regarding gunzipping compressed data
not in a file...
I have a gzipped file/object/whatever residing accross a network (it's
large, about 1GB).
The file is broken up into 32Kb chunks and sent accross the network in
these chunks.
I need to decompress the file using GZIP at the other end of the
network from the bunch of 32Kb chunks.
I obviously can't just load 1GB of bytes into an extremely large
ByteArrayInputStream, then push that into GZIPInputStream as I would
quickly run out of memory as the GZIPInputStream class would have you
do using it's constructor and a ByteArrayInputStream.
I need a way to do this a few 32Kb chunks at a time, and keep adding
data to GZIPInputStream(or whatever) for decompressing, and then
reading the uncompressed data as we go.
Any ideas would be really, really, helpful. Code examples would be
extremely helpful as I'm pretty new to Java and love the language so
far.
I have a hopefully simple question regarding gunzipping compressed data
not in a file...
I have a gzipped file/object/whatever residing accross a network (it's
large, about 1GB).
The file is broken up into 32Kb chunks and sent accross the network in
these chunks.
I need to decompress the file using GZIP at the other end of the
network from the bunch of 32Kb chunks.
I obviously can't just load 1GB of bytes into an extremely large
ByteArrayInputStream, then push that into GZIPInputStream as I would
quickly run out of memory as the GZIPInputStream class would have you
do using it's constructor and a ByteArrayInputStream.
I need a way to do this a few 32Kb chunks at a time, and keep adding
data to GZIPInputStream(or whatever) for decompressing, and then
reading the uncompressed data as we go.
Any ideas would be really, really, helpful. Code examples would be
extremely helpful as I'm pretty new to Java and love the language so
far.