Sending an image with protobuf

With my post I want to send an image, I read here that it is possible to send an image with bytes. So I converted my image to byte. Now iam is stuck with creating a form that's a bytestring array so I can use it. I was going to look into google documentation and found the ByteString class, so I tried calling the construct, but this is private. so is there any way to make my bytearray into a bytestring?

+3
java protocol-buffers


source to share


No one has answered this question yet

Check out similar questions:

1367
Fastest way to determine if an integer square root is an integer
461
Why can't I define a static method in a Java interface?
2
Send image from c ++ to rabbitmq with protocol buffer before c #
2
C # RestSharp PUT method and send raw bytes (protobuf)
0
Empty Google Protobuf list showing size 1
0
Protobuf - toByteArray method does not exist in my class
0
need to convert bytearray to image without using imageIO or fileoutputstream
0
Problems sending jpg image over java socket using datainput / -outputstream
0
Is it possible to detect the type of message in protobuf-csharp-port?
0
Protobuff doubles serialization as null bytes



All Articles
Loading...
X
Show
Funny
Dev
Pics