I have a web service that returns the binary array of an object. Is there an easier way to transfer this with SOAP or does it need to be contained in XML? It’s working, but I had to increase the send and receive buffer to a large value. How much is too much?
Transferring binary in XML as an array seems really inefficient, but I can’t see any way to add a binary attachment using .NET.
As an array? Do you mean that you are sending
etc? If so then you can certainly improve on it by converting the byte array into a hex string beforehand, eg.
This is the most common approach for sending images, etc, via SOAP. However, even then you are correct to question it. You should really be looking at other, more RESTful transfer protocols, IMHO.