4 ms·
Why would it be b64 encoded? There's nothing that prevents you from putting an encoded protobuf into a protobuf as `bytes` type. `bytes nestedMessage = 42;` Onl
by jeffbee 2y ago
Why would it be b64 encoded? There's nothing that prevents you from putting an encoded protobuf into a protobuf as `bytes` type. `bytes nestedMessage = 42;` Only delimited message formats like JSON or XML need to encapsulate messages before nesting.
- aleksiy123 2y agoBecause it is in a Json? Internally it probably is protobuf with bytes. But the external API is Json and so it needs to be converted at some point. https://stackoverflow.com/questions/49358526/protobuf-message-to-json-conversion-of-bytes-field-converts-string-to-base64 https://stackoverflow.com/questions/49358526/protobuf-messag...