For the moment, you can call msg.serializeBinary(), but make sure you 
generated the JavaScript with the binary=1 option.

In the near future this will be changing. The binary serialization code 
will get generated into separate files from the data structures themselves. 
So in the future it will be more like: 
my_proto_binarypb.Foo.deserializeBinary(msg) if the type is Foo.

On Thursday, July 21, 2016 at 11:04:27 AM UTC-7, 
> i just want to get a byte arrays from a protobuf object as java in 
> javascript, but i never find a function to do it. who knows? please tell me

You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
To post to this group, send email to
Visit this group at
For more options, visit

Reply via email to