0

I Use MVC 4 and WCF service.

Here's my viewmodel where i call the service.

The objSwatchClass has a property byte[] of an image.
int updatedSeqNo = objSwatchService.InsertSwatch(objSwatchClass);

Binding in my application's web.config

      <security mode="None">
        <transport clientCredentialType="None" proxyCredentialType="None"
          realm="" />
        <message clientCredentialType="UserName" algorithmSuite="Default" />
      </security>

</binding>

Error when i call the service with byte as parameter Detailed Error

1
  • objSwatchClass has a property SwatchImage that you can see in the image. SwatchImage = imgArray. Its passed. I want to pass whole object with byte[] as a property of it. Commented Aug 23, 2013 at 10:33

1 Answer 1

1

You have not published your full binding, but according the error it seems your client binding uses MTOM while your serevr binding does not (plain text). Make sure they are in sync to either setting depending on your needs (MTOM is more optimized).

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.