Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

passing image as byte[] to webservice

 
Suzzane Pinto
Ranch Hand
Posts: 214
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

iam passing image in byte[] to the webservice,my andriod code is



and the webservice code in .net is:




iam getting exception in logcat:




can anybody tell me where am i going wrong??
thanks


 
Suzzane Pinto
Ranch Hand
Posts: 214
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
i have added these two lines when removed my exception

new MarshalBase64().register(envelope); //serialization
envelope.encodingStyle = SoapEnvelope.ENC;


but the image is still not inserted into the database
any suggestion
help would be appreciated..
thankyou


 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!