Could someone give me a usecase / example of using GzipInputStream
(outputstream) for reading a binary file with multiple object types?

Regards,
Alok

On Feb 2, 5:46 pm, alok <alok.jad...@gmail.com> wrote:
> also, what is the standard way to write and to read from a
> gzipstream.
> I am doing something like this
>
> to write to stream:
> headerMessage.SerializeToZeroCopyStream(gzip_output);
>
> to read from stream:
> headerMessage.ParseFromZeroCopyStream(gzip_input,
> headerMessage.ByteSize());
>
> is the above approach correct? I haven't used gzipstreams with
> protocol buffers before. i am not able to make it work.
>
> Regards,
> Alok
>
> On Feb 2, 5:18 pm, alok <alok.jad...@gmail.com> wrote:
>
>
>
>
>
>
>
> > How do we implement GzipInputStream to read a file with different
> > messages. I could achieve this using coded input stream by appending
> > the size of the object before the object itself. I am not sure how to
> > get same result using GzipInputStream. Could someone please guide me
> > here?
>
> > Regards,
> > Alok

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to protobuf@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to