I'm using this code in .net web service to send image as byte array:
public byte[] getImage()
{
byte[] img;
....
return img;
}
How can read this byte array using ksoap2 and convert it to bitmap?
Can you explain that in simple code.
Update: This code I'm using in android to read data from web service:
String SOAP_ACTION = WebServiceNameSpace + GetImage;
String NAMESPACE = WebServiceNameSpace;
String METHOD_NAME = GetImage;
String URL = WS_URL;
SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);
SoapSerializationEnvelope Envelope = new SoapSerializationEnvelope(
SoapEnvelope.VER11);
Envelope.dotNet = true;
Envelope.setOutputSoapObject(request);
HttpTransportSE transport = new HttpTransportSE(URL);
transport.call(SOAP_ACTION, Envelope);
SoapPrimitive primetive = (SoapPrimitive) Envelope.getResponse();
return primetive.toString();