2013年4月12日
摘要: [ServiceContract] public interface IService1 { [OperationContract] void UploadFile(FileUploadMessage request); } [MessageContract] public class FileUploadMessage { // 文件在根目录下的子文件夹名 [MessageHeader(MustUnderstand = true)] public... 阅读全文
posted @ 2013-04-12 21:02 无觉-李敏 阅读(315) 评论(0) 推荐(0) 编辑
摘要: //客户端调用 using (FileStream fs = new FileStream(sourceFilePath, FileMode.Open)) { byte[] bytes = new byte[fs.Length]; fs.Read(bytes, 0, bytes.Length); // 设置当前流的位置为流的开始 fs.Seek(0, SeekOrigin.Begin); fs.Clo... 阅读全文
posted @ 2013-04-12 20:59 无觉-李敏 阅读(311) 评论(0) 推荐(0) 编辑