Reputation: 293
when I use json_format.MessageToDict
to convert the protobuf message to python dict. the bytes type field will become the base64 encoding.
I find that source code: https://chromium.googlesource.com/external/github.com/google/protobuf/+/HEAD/python/google/protobuf/json_format.py#289
But why protobuf do that?
Upvotes: 2
Views: 3630