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?

Pratik
  • 30,639
  • 18
  • 84
  • 159
Prabhu M
  • 3,534
  • 8
  • 48
  • 87

1 Answers1

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 .

Community
  • 1
  • 1
Taras Shevchuk
  • 331
  • 2
  • 12