在webservice或WCF中从服务器向客户端发送和接收文件 [英] Send and receive file from server to client wiseversa in webservice or WCF

查看:209
本文介绍了在webservice或WCF中从服务器向客户端发送和接收文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个要求,称为Internet Information Service中的一个服务器,并在托管计算机上查看其本地文件夹。一旦在该文件夹中创建文件,我将发送到多个客户端,该客户端将包含HTTP上的一些文件夹路径。因此服务器需要使用Window Communication Foundation或Web服务将文件发送到客户端,然后客户端也将文件发送到服务器。我怎么能配置这个系统。任何人都给我建议。我一直在寻找,但没有得到任何解决方案。



我尝试过:



i已尝试在wdc中通过http将文件从服务器发送到多个客户端,但我只从客户端调用服务。

I have a requirement called one server in Internet Information Service and watching its local folder on hosted machine. Once file created in this folder i will send to more than one client which will contains some folder path over HTTP.So that server needs to send file to client using Window Communication Foundation or web service, then client will also send file to server. How can i configure this system.can anyone give me suggestion please.I have been searching day ago but not getting any solution.

What I have tried:

i have tried in wdc to send file from server to multiple clients over http, but i get only calling service from client only.

推荐答案

您好,请参阅这些CodeProject文章,

1. 使用WCF传输文件 [ ^ ]

2. WCF流:通过HTTP上传/下载文件 [ ^ ]
Hello, refer these CodeProject articles,
1. Transfer File Using WCF[^]
2. WCF Streaming: Upload/Download Files Over HTTP[^]


这篇关于在webservice或WCF中从服务器向客户端发送和接收文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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