In my application, I am using a web-service which returns an image in base64Binary format. I am using ksoap2 to interact with the web-services.
Can anyone provide me any help regarding how to receive the base64Binary and then convert it into an image ?
This is the code I use interact with the web-service.
SoapObject request = new SoapObject(NAMESPACE, METHOD_GET_CONTROL);
SoapSerializationEnvelope envelope =
new SoapSerializationEnvelope(SoapEnvelope.VER11);
envelope.dotNet = true;
envelope.setOutputSoapObject(request);
HttpTransportSE androidHttpTransport = new HttpTransportSE(URL);
try {
androidHttpTransport.call(SOAP_ACTION_GET_CONTROL, envelope);
..........=envelope.getResponse(); //To get the data. }
How do I receive the data in base64Binary format and then convert it into a png image ?