1

I want to send array of images from android to rest web service and vice versa.

So I need to write two methods in rest web service:

  1. for accessing array of images from client .
  2. for sending array of images from rest web service to android.

I have been finding the solution in the internet but unable to get it.

What is the solution for this?

1 Answer 1

1

Use to convert Byte array to Bitmap:

byte[] iconData;
Bitmap image = BitmapFactory.decodeByteArray(iconData, 0,
            iconData.length);

and for Bitmap to byte array use: converting Java bitmap to byte array .

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

1 Comment

My problem is to send array of bitmaps not single bitmap

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.