I have a WCf rest service which has two input parameters : string and Stream:
[OperationContract]
[WebInvoke(Method = "POST", UriTemplate = "ImportStream/{Separator}", ResponseFormat =
WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Bare)]
void ImportStream(string Separator, stream data);
My code:
public void ImportStream (string Separator, Stream inputpar)
{ //...
}
My objectif is to call the service with POSTMAN: https://localhost:44355/ServiceLias.svc/rest/ImportStream/Comma
and in the body , I write the Stream as Text ,
but I have error from the beginning :
For request in operation ImportStream to be a stream the operation must have a single parameter whose type is Stream.
How can I fix it ? Or there is any idea to achieve my objectif ? Thanks,