[protobuf] which protobuf type should be used for byte arrays

2019-01-22 Thread joe . parness
What is the correct type to use when encoding byte arrays that contain 0s? If I use "bytes" then arrays that contain 0s are truncated. -- This email and its contents are confidential. If you are not the intended recipient, please do not disclose or use the information within this email or i

Re: [protobuf] which protobuf type should be used for byte arrays

2019-01-22 Thread Nadav Samet
That shouldn't be the case. Byte arrays are encoded with their length first, exactly because all possible bytes are allowed.a Which language are you using, can you share sample code? On Tue, Jan 22, 2019, 4:52 PM What is the correct type to use when encoding byte arrays that contain 0s? > If I us