0

I'm using a GoogleApiClient MessageApi method which accepts an arbitrary payload specified as a byte array.

For my payload I have some strings and a Bitmap that I want to transfer all together in one go.

What options are there available for packaging the strings and bitmaps and converting to a byte array?

1

1 Answer 1

0

A Bitmap can be converted to bytes through copyPixelsToBuffer. A string has getBytes.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.