wood burning stoves
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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "ksoap receiving image as byte array" Watch "ksoap receiving image as byte array" New topic

ksoap receiving image as byte array

achor elm

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);
I agree. Here's the link: http://aspose.com/file-tools
subject: ksoap receiving image as byte array
It's not a secret anymore!