You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am sending requests using a protobuf message which has a field with type bytes - specifically image bytes. I convert the image to bytes using a Python script and get the following output:
\xff\xd8\xff\xe0\x00\x10JFIF[...]
This, I then input to the bytes field in Protoman:
I would expect that exactly the same \xff\xd8\xff\xe0\x00\x10JFIF is transferred to the server, but what I get at the server side is:
\xc5\xf7\xf1w\xcc_\x7f\x17\xb4\xc7M1\xd7BE
I assume this has to do with the representation the data is in, I am inputting a byte string. What does the byte type actually expect?
The text was updated successfully, but these errors were encountered:
I encountered a similar issue when sending image bytes using protobuf. I resolved it by converting the image into a base64 string before sending it. This approach worked for me, and it might solve your problem as well.
I am sending requests using a protobuf message which has a field with type
bytes
- specifically image bytes. I convert the image to bytes using a Python script and get the following output:\xff\xd8\xff\xe0\x00\x10JFIF[...]
This, I then input to the bytes field in Protoman:
I would expect that exactly the same
\xff\xd8\xff\xe0\x00\x10JFIF
is transferred to the server, but what I get at the server side is:\xc5\xf7\xf1w\xcc_\x7f\x17\xb4\xc7M1\xd7BE
I assume this has to do with the representation the data is in, I am inputting a byte string. What does the
byte
type actually expect?The text was updated successfully, but these errors were encountered: