Search code examples
protocol-buffers

How to encode byte[] in proto buffs


Is there an equivalent to int8 or byte type in proto buffs? I would like to send a byte array object.


Solution

  • https://developers.google.com/protocol-buffers/docs/proto3#scalar

    bytes: May contain any arbitrary sequence of bytes no longer than 232.