在Andriod设备的视频上传Wcf服务中的错误 [英] Errror in video uploding Wcf service for Andriod device

查看:66
本文介绍了在Andriod设备的视频上传Wcf服务中的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

i, write  a  Wcf service for video uploding for andriod device. but when connect this service we get a error msg "Cannot process the message because the content type 'application/octet-stream' was not the expected type 'text/xml; charset=utf-8'". whats this error ??
help me...

推荐答案

嗯,服务响应总是用XML,除非你明确指定不同的类型,即JSON。

无法处理消息,因为内容类型'application / octet-stream'不是预期类型'text / xml; charset = utf-8'

现在你传递的是 octet-stream ,它不是XML。因此,您需要将您的流转换为XML并通过WCF传递它。



由于您没有共享代码,因此很难说您可以做什么。 br $> b $ b

-KR
Well, the service response is always in XML, unless you explicitly specify the different type, i.e JSON.
Cannot process the message because the content type 'application/octet-stream' was not the expected type 'text/xml; charset=utf-8'
Now you're passing the octet-stream, which is not an XML. So you need to convert your stream to XML and pass it over WCF.

As you've not shared your code, it's hard to tell what you can do.

-KR


这篇关于在Andriod设备的视频上传Wcf服务中的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆