When a service is called, my client code transmits data. One of the data elements is an array of bytes, so WCF automatically encodes this into a base-64 string during serialization. The problem is that the contract for the service data expects an array of bytes, not a string, so deserializing the data will throw an exception: Waiting for the state of "Element" .. A "Text" with the name "", namespace '' was detected
How do I solve this problem?
source
share