How to convert Protobuf ByteString to an octal-escaped String in java?

Viewed 34917

Could anyone please let me know how to convert protobuf's ByteString to an octal escape sequence String in java?

In my case, I am getting the ByteString value as \376\024\367 so, when I print the string value in console using System.out.println(), I should get "\376\024\367".

Many thanks.

2 Answers
Related