.net 是否可以使webHttpBinding WCF服务回答二进制问题?

.net 是否可以使webHttpBinding WCF服务回答二进制问题?,.net,wcf,binary,webhttpbinding,.net,Wcf,Binary,Webhttpbinding,我履行了这个合同 [OperationContract] [WebGet(UriTemplate = "{parameter}", BodyStyle= WebMessageBodyStyle.Bare)] byte[] Operation(string parameter); 但是,当我调用实现时,我得到的是这样的东西: <base64Binary xmlns="http://schemas.microsoft.com/2003/10/Serialization/">dGVzdA

我履行了这个合同

[OperationContract]
[WebGet(UriTemplate = "{parameter}", BodyStyle= WebMessageBodyStyle.Bare)]
byte[] Operation(string parameter);
但是,当我调用实现时,我得到的是这样的东西:

<base64Binary xmlns="http://schemas.microsoft.com/2003/10/Serialization/">dGVzdA==</base64Binary>
dGVzdA==
我不能删除此包装器和此序列化吗?

使其返回流

Stream Operation(string parameter)
{
   ...
   new MemoryStream(bytes);
}
让它返回流

Stream Operation(string parameter)
{
   ...
   new MemoryStream(bytes);
}