[英]pass byte[] array parameter to wcf service
我使用MVC 4和WCF服務。
這是我調用服務的viewmodel。
The objSwatchClass has a property byte[] of an image.
int updatedSeqNo = objSwatchService.InsertSwatch(objSwatchClass);
綁定到我的應用程序的web.config中
<security mode="None">
<transport clientCredentialType="None" proxyCredentialType="None"
realm="" />
<message clientCredentialType="UserName" algorithmSuite="Default" />
</security>
</binding>
您尚未發布完整的綁定,但是根據該錯誤,看來您的客戶端綁定使用MTOM,而您的serevr綁定沒有(純文本)。 確保根據您的需要將它們同步到任一設置(MTOM進行了更優化)。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.