Re: [protobuf] Re: Compress proto to string

2013-01-30 Thread David Granados
I need compress a protobuff, and decompress, (i am testing by now). I have got it using a temporal file but now, i want to get the same, using only string (without temporal file, increase speed). By now. i'm testing. I know the proto is 192 without compress and 80 (aprox) compressed. If i

Re: [protobuf] Re: Compress proto to string

2013-01-29 Thread Oliver Jowett
On Tue, Jan 29, 2013 at 11:23 AM, David Granados deivi...@gmail.com wrote: this does not work :-( That's not really a useful description of the problem. 229 google::protobuf::io::GzipOutputStream gzip_stream(arrayStream); 230 if

Re: [protobuf] Re: Compress proto to string

2013-01-29 Thread Oliver Jowett
(Readding the list cc:) On Tue, Jan 29, 2013 at 4:32 PM, David Granados deivi...@gmail.com wrote: Does not work :-( Size of proto before: 196, size of proto after gzip: 196 What measures this? Nothing in any code you quoted. Now my code are: 206 template class T int 207