Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ksoap receiving image as byte array

 
achor elm
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic