On Mon, Jan 21, 2013 at 7:53 PM, David Granados <deivi...@gmail.com> wrote:

> Hello.
>
> I compressed a proto object: Mail, in a file named : file.sav.
>
> Now i need get the proto object mail again, from the file.sav.
>
>  I'm tying some like:
>  google::protobuf::io::FileInputStream file_stream(filedescriptor);
>  google::protobuf::io::GzipInputStream gzip_stream(&file_stream,
> GzipInputStream::GZIP);
>
Wrap it with a 
CodedInputStream<https://code.google.com/p/protobuf/source/browse/trunk/src/google/protobuf/io/coded_stream.h#159>
and
call mail.ParseFromCodedInputStream() to parse from the stream.


>
> I don't know how deserializate from stream to object Mail.
>
> Regards.
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Protocol Buffers" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/protobuf/-/PiBkAgKCjgUJ.
> 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.
>

-- 
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