Thanks XIAO. Finally i do: ZeroCopyInputStream* input = new google::protobuf::io::FileInputStream(filedescriptor); google::protobuf::io::GzipInputStream gzip_stream(input, GzipInputStream::GZIP); Mail.ParseFromZeroCopyStream(&gzip_stream);
And this work perfectly. I paste the code for someone need. El lunes, 21 de enero de 2013 12:53:28 UTC+1, David Granados escribió: > > 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); > > 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/-/4SHoZUWOslgJ. 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.
