I am in the process of developing a WCF service that needs to take in an image and 2 parameters. One being an int type, the other a string array. So this would be easy enough if it were only 1 parameter to send up, along with the image:
[OperationContract]
[WebInvoke(Method = "POST", UriTemplate = "UploadImages/{imageID}")]
public void UploadImages(int imageID, Stream image)
{
}
现在,在这种情形下,形象就出现在员额的身上。 如果服务行业的消费者需要采纳第三批数据,那么这一调查如何看待和工作如何?
<system.serviceModel>
<client>
</client>
<bindings>
<webHttpBinding>
<binding name="webHttpBindingStreamed" transferMode="Streamed"></binding>
</webHttpBinding>
</bindings>
<services>
<service name="ImageService">
<endpoint address="" binding="webHttpBinding" behaviorConfiguration="MyWebHttpBehavior" name="ImageServiceWebBinding" contract=IImageService" />
</service>
</services>
<behaviors>
<endpointBehaviors>
<behavior name="MyWebHttpBehavior">
<customWebHttp />
</behavior>
</endpointBehaviors>
<serviceBehaviors>
<behavior name="">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="true" />
</behavior>
</serviceBehaviors>
</behaviors>
<extensions>
<behaviorExtensions>
<add name="customWebHttp" type="CustomHttpBehaviorExtensionElement, ImageUploader" />
</behaviorExtensions>
</extensions>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
</system.serviceModel>