wcf客户端无法显示 保存在数据库里的image图像
wcf客户端 无法显示 保存在数据库里的image图像
提示:
无法显示 XML 页。
使用 样式表无法查看 XML 输入。请更正错误然后单击 刷新按钮,或以后重试。
------------------------------------------------------------
文本内容中发现无效字符。处理资源 'http://localhost:17071/ShowImage_Dydj2.aspx' 时出错。
我的wcf服务端配置
<bindings>
<wsHttpBinding>
<binding name="wsHttpBindingConfig" closeTimeout="00:01:00" openTimeout="00:01:00"
receiveTimeout="00:10:00" sendTimeout="00:01:00" bypassProxyOnLocal="false"
maxBufferPoolSize="1024000" maxReceivedMessageSize="1024000" messageEncoding="Text"
textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
<readerQuotas maxDepth="1024" maxStringContentLength="1024000" maxArrayLength="1024000"
maxBytesPerRead="4096" maxNameTableCharCount="1024000" />
<security mode="None">
<transport clientCredentialType="None" proxyCredentialType="None"
realm="" />
<message clientCredentialType="UserName" algorithmSuite="Default" />
</security>
</binding>
</wsHttpBinding>
</bindings>
我的wcf客户端配置
<bindings>
<wsHttpBinding>
<binding name="EndPointHttp" closeTimeout="00:01:00" openTimeout="00:01:00"
receiveTimeout="00:10:00" sendTimeout="00:01:00" bypassProxyOnLocal="false"
transactionFlow="false" hostNameComparisonMode="StrongWildcard"
maxBufferPoolSize="1024000" maxReceivedMessageSize="1024000" messageEncoding="Text"
textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
<readerQuotas maxDepth="32" maxStringContentLength="1024000"
maxArrayLength="1024000" maxBytesPerRead="4096" maxNameTableCharCount="1024000" />
<reliableSession ordered="true" inactivityTimeout="00:10:00"
enabled="false" />
<security mode="None">
<transport clientCredentialType="Windows" proxyCredentialType="None"
realm="" />
<message clientCredentialType="Windows" negotiateServiceCredential="true" />
</security>
</binding>
</wsHttpBinding>
</bindings>
说明,文本字段显示正常,程序也没有错误,就是无法读取Image字段