wcf客户端无法显示 保存在数据库里的image图像

wxj6688 2012-03-12 09:31:04
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字段
...全文
34 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

110,536

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧