0

i am planning to call following message using grpcurl. How to send a .google.protobuf.BytesValue via grpcurl?

message TestRequest {
  .google.protobuf.BytesValue TestJson = 1;
  string Temp = 2;
}
Lava Sangeetham
  • 2,943
  • 4
  • 38
  • 54

1 Answers1

0

BytesValues is a message (wrapper) for bytes.

Try Base64 encoding the bytes field and passing it that way.

Protobuf's JSON encoding of bytes is a Base64 string.

DazWilkin
  • 32,823
  • 5
  • 47
  • 88