OSIFY

In general, how webservice recieves image file or other binary data?

As you may notice, one of the popular way to communicate with web service to transfer data or receive data, we mostly use XML (Soap, XML RPC …). XML is a string data, so what is the best way to attach the image files or any binary data to send or receive from the webservice?

I think the better way is converting the file as byte array and encode the byte array into encoding Base64 string. Then save the string into the block node so at web service will handle to produce the decoding byte array into stream and produce the file as well. Do the same when web service responses.

Is it interesting?