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 Spring in Action this week in the Spring 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 want to receive an image as byte array. I cant understood like one the SoapPrimitive used. you could help me to write the SOURCE code
thank you
Excuse me for my English

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