How can I upload an image file to a webservice using SOAP?
I need it to be used with SoapObejct so the webservice can handle the input file in its context and give it a new filename.
How?
Any code examples?
Yoav
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Convert your image file to a Base64 string and send your string with its name to web-service easily.
Do you still need code sample?
Edit
send your object to the webservice as a JSON string:
in your activity:
In your webservice convert your json string to a real object which is a replica of MyClass.
edit:
Also you can ignore Json and have a webserivce method with 2 parameters:
MyWebserviceMethod(string filename, string content);pass Base64 string as second parameter.