问题描述
在.NET中如何创建接收流一个WCF方法?我是一个新手在.NET中请不要downvote的问题,因为这似乎是与出适当的研究问题。我需要创建一个服务器端code与WCF,请参考下面的链接,以供参考: -
In .NET how to create a WCF method that receives stream?I am a newbie in .NET and please don't downvote the question because this seems like a question with out proper research.I need to create a server side code with WCF, please refer to the following link for reference:-
的
推荐答案
我不知道谁是客户对你的WCF方法,它会使用流式数据上传,所以不能提出如何你的客户应该做/配置,但是这是你将如何使您的WCF接受WCF使用流式上传:
I am not sure who is client for your wcf method, which going to upload data using streaming,so can't suggest how your client should be done/configured, but this is how you will enable your wcf to accept uploads using streaming in wcf:
的
也可以看看:上传文件WCF
一个建议,下次需要的东西,似乎是在开发任务一般需要之类的,在SO本身第一次搜索,而不是发布。
One suggestion, next time need something which seems kind of "generally needed during development task", first search on SO itself, rather than posting.
修改:为了掩饰刚才的Android到WCF上传
Edit: To cover just android to wcf uploads
要上传从Android的文件WCF :请参阅本,已接受的答案:从安卓文件上传到WCF
To upload file from android to wcf: refer this, has accepted answer:Upload files from android to wcf
**投票了,请你,如果这个答案适合您的需要。
**Vote up please if this answer suits your needs
这篇关于接收的流的WCF方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!