aspose file tools*
The moose likes Java Micro Edition and the fly likes ksoap receiving image as byte array Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "ksoap receiving image as byte array" Watch "ksoap receiving image as byte array" New topic
Author

ksoap receiving image as byte array

achor elm
Greenhorn

Joined: Feb 23, 2005
Posts: 2
I am beginner in J2ME. I use ksoap, I receive an image back as byte array. as I cannot store the byte array in byte[ ] A.I cant understood like one the SoapPrimitive used. you could help me to write the SOURCE code
thank you


SoapObject client = new SoapObject(url,"testimage");

HttpTransport ht = new HttpTransport(url,"testimage");

ClassMap classMap = new ClassMap (true);
ht.setClassMap (classMap);
imageString = new SoapPrimitive
(Soap.ENC, "base64", Base64.decode());

byte [] a = new byte[l024];
a = Base64.decode(imageString);
THANKS THANKS
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ksoap receiving image as byte array
 
Similar Threads
Retrieve XML from a WebService
Commons codec Base64 problem
KSOAP receiving image as byte array
API to Decode base64 binary data
Byte[] to image