从Android电子文件上传到WCF [英] Upload files from android to wcf

查看:188
本文介绍了从Android电子文件上传到WCF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好香港专业教育学院找了几个小时一个答案后,但还没有真正发现任何东西,我可以用。

Well Ive looked for hours and hours after an answer but havent really found anything that I could use.

  1. 我希望能够发送/上传文件(图片,视频,文档,音频)到web服务。我想从Android设备(2.2版)做到这一点。
  2. 我需要能够发送给量身定制的WCF我的需要,我需要的文件发送信息,以验证谁愿意上传用户。
  3. 另外值得一提的是我用一个宁静的WCF的.NET Web服务,我preFER继续尽可能使用。至少我需要能够使用WCF达网络作为web服务的通信。

所有的解决方案我见过集中在Android,从来没有对服务的一部分。我两者都需要。 :)

All solutions Ive seen concentrate on the android part and never on the service part. I need both. :)

推荐答案

本博客文章  <一href="http://reecon.word$p$pss.com/2010/04/25/uploading-files-to-http-server-using-post-android-sdk/" rel="nofollow">http://reecon.word$p$pss.com/2010/04/25/uploading-files-to-http-server-using-post-android-sdk/  介绍了如何可以上传文件HTTP POST - 你必须从Android的,如果你想将文件上传到WCF服务连接了的WebHttpBinding使用

This blog post http://reecon.wordpress.com/2010/04/25/uploading-files-to-http-server-using-post-android-sdk/ describes how you can upload files with HTTP POST - which you must use from Android if you want to upload files to a WCF service wired up with webHttpBinding.

额外的元数据可以被作为HTTP标头。

Extra metadata can be sent as HTTP headers.

- larsw

--larsw

这篇关于从Android电子文件上传到WCF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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