Are C++ and Java GZip streams compatible?

On Tue, Oct 19, 2010 at 4:34 PM, Kenton Varda <[email protected]> wrote:

> Compression is not a built-in feature of protocol buffers, but it is easy
> and often useful to apply compression on top of the protobuf encoding.
>
> In Java, write your data to a GZIPOoutputStream, and then read from a
> GZIPInputStream.  These classes are part of the standard Java library, not
> the protobuf library.
>
> In C++, use the GzipOutputStream and GzipInputStream classes that are
> provided in the protobuf library (under google/protobuf/io).  These simply
> call zlib to apply compression on top of protocol buffers.
>
> On Mon, Oct 18, 2010 at 9:50 PM, nit <[email protected]> wrote:
>
>> HI All,
>>  Can anyone let me know whether the encoded file can be compressed
>> while sending it and decompressed at the receiver's end?
>>   The problem is like i have a message structure which has many field
>> and consumes more bytes. So can i compress and Decompress them?
>>
>> thanks,
>> Nithin Shubhananda
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Protocol Buffers" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected]<protobuf%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/protobuf?hl=en.
>>
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Protocol Buffers" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<protobuf%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/protobuf?hl=en.
>

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

Reply via email to