Webservice And Upload File

Hi everybody

I want to write a webservice with soap. input data is an image file. I should receive and save it in a folder and database.

I have 2 questions.

  1. can I use soap? or POST is better?

  2. is there any topic or example to help me?

I’ve used webservices that require sending files. Usually there are encoded with base64 and just treated as values of arguments when calling methods.

This works but sometimes file size are an issue. In that case, compression could be enabled in SOAP.

In case of problems enable trace in your SOAP client and check out the full request and response, or just sniff the 80 port :slight_smile: