Skip to content

Not sure how to use field with type "bytes" #104

Description

@rahelbeloch

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:

Screenshot 2023-06-28 at 13 12 36

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions