[protobuf] How to get the byte[] from a serialized data ?

2011-03-04 Thread Aditya Narayan
I am trying to use Protocol buffers to store serialized data in Database for a web application built in java. I have created .proto files and compiled them to get the generated classes. Also I can build the message objects using the setters finally build() method. But to store it to

Re: [protobuf] How to get the byte[] from a serialized data ?

2011-03-04 Thread Evan Jones
On Mar 4, 2011, at 7:15 , Aditya Narayan wrote: I have created .proto files and compiled them to get the generated classes. Also I can build the message objects using the setters finally build() method. But to store it to database, I need serialized data as byte[] or byte buffers. How do I