Win a copy of OCP Java SE 8 Programmer II Exam Study Guide this week in the OCP forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

ksoap receiving image as byte array  RSS feed

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);
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!