您的位置:首页 > 其它

WebService上传文件到服务器

2013-05-15 15:14 295 查看
使用WebService上传文件到所在的服务器上,废话不多说,代码说话

首先定义一个文件帮助类FileHelper

public static string UpLoadFile(string fileName, ref string eMsg)
{
//wms:WebService
if (wms == null)
{
wms = new Service();
}
byte[] fByte;

fByte = File.ReadAllBytes(fileName);

return wms.UploadFile(fByte, fileName, ref eMsg);
}


Client Code
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: