架构师_程序员_码农网

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 9389|回复: 0

[WCF/Web Servics] WCF数据通信参数不能是Image类型?

[复制链接]
发表于 2016-7-19 16:39:00 | 显示全部楼层 |阅读模式
{"There was an error while trying to serialize parameter http://tempuri.org/:_image. The InnerException message was 'Type 'System.Drawing.Bitmap' with data contract name 'Bitmap:http://schemas.datacontract.org/2004/07/System.Drawing' is not expected. Consider using a DataContractResolver or add any types not known statically to the list of known types - for example, by using the KnownTypeAttribute attribute or by adding them to the list of known types passed to DataContractSerializer.'.  Please see InnerException for more details."}


{“有一个错误,而试图序列化参数HTTP:/ /:_image tempuri。org。InnerException消息类型系统。图。位图的数据合同名称“位图:http://schemas.datacontract.org/2004/07/system.drawing”预计不会。考虑使用datacontractresolver或添加任何类型不知道静态已知类型,例如链表,用knowntypeattribute属性或添加到已知类型通过DataContractSerializer名单。”。请详见InnerException。”}

我反正报错了,不知道为啥,还没解决。。




上一篇:c#获取Image图片格式
下一篇:For request in operation xx to be a stream the operation must have a sing...
码农网,只发表在实践过程中,遇到的技术难题,不误导他人。
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则

免责声明:
码农网所发布的一切软件、编程资料或者文章仅限用于学习和研究目的;不得将上述内容用于商业或者非法用途,否则,一切后果请用户自负。本站信息来自网络,版权争议与本站无关。您必须在下载后的24个小时之内,从您的电脑中彻底删除上述内容。如果您喜欢该程序,请支持正版软件,购买注册,得到更好的正版服务。如有侵权请邮件与我们联系处理。

Mail To:help@itsvse.com

QQ|手机版|小黑屋|架构师 ( 鲁ICP备14021824号-2 )|网站地图

GMT+8, 2024-4-16 22:14

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表