摘要: 这个是一个Restful上传文件的实现方法,我们可以在上传过程中通过线程等待来现实限速功能 /// <summary> /// 上传 /// </summary> /// <param name="fileName"></param> /// <param name="fileStream"></param> public void FileUpload(string fileName, Stream fileStream) { FileStream fileToupload... 阅读全文
posted @ 2013-05-16 12:34 violence 阅读(2854) 评论(0) 推荐(0) 编辑
摘要: 参考了别人的代码,然后自己修改了一下 public static bool ResponseFile(HttpContext context, string _fullPath, long _speed) { HttpRequest _Request = context.Request; HttpResponse _Response = context.Response; string strFileName = new FileInfo(_fullPath).Name; try... 阅读全文
posted @ 2013-05-16 11:48 violence 阅读(3500) 评论(0) 推荐(1) 编辑