I have an endpoint called over HTTP that responds with application/protobuf content type data but the content is in binary I believe. When looking at it on Chrome is it possible to decode it somehow?
Asked
Active
Viewed 1,751 times
2
-
Isn't that a ArrayBuffer? – Dzintars Jun 30 '21 at 16:36
-
I don't know about inside Chrome, but if you can save the payload as a file or hex/base-64 and it is protobuf: https://protogen.marcgravell.com/decode – Marc Gravell Jun 30 '21 at 16:36
-
1@marc-gravell I think your comment should be the answer. Perhaps with the additional information that, this isn't possible in Chrome by default. This is, in part, because on-the-wire (binary) protobuf data isn't self-describing and you need either the `.proto` (schema), a descriptor file or your clever tool to uncover the original message. – DazWilkin Jun 30 '21 at 20:11
-
Did you find how to do this? @MarcGravell I don't understand what I should paste on your tool. I tried it today with the output of the chrome network dev tool (similar to the screenshot above) and got errors about not being a valid input. – user313551 Mar 30 '22 at 19:53
-
@user313551 then it probably isn't valid protobuf data? – Marc Gravell Mar 30 '22 at 22:16