0
我使用MVC 4和WCF服务。将byte []数组参数传递给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>
objSwatchClass有一个属性SwatchImage,您可以在图像中看到。 SwatchImage = imgArray。它通过了。我想通过byte []传递整个对象作为它的一个属性。 – Sakthivel