Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


Because 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-messag...




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: