2012年3月30日

异步上传

摘要: public const int CHUNK_SIZE = 4096; public const string UPLOAD_URI = "http://localhost:55087/FileUpload.ashx?filename={0}&append={1}"; private Stream _data; private string _fileName; private long _bytesTotal; private long _bytesUploaded; private void UploadFileChunk() { string uploadUr 阅读全文

posted @ 2012-03-30 16:28 Y# 阅读(238) 评论(0) 推荐(0) 编辑

Upload Large file

摘要: public static string MyUploader(string strFileToUpload, string strUrl){ string strFileFormName = "file"; Uri oUri = new Uri(strUrl); string strBoundary = "----------" + DateTime.Now.Ticks.ToString("x"); // The trailing boundary string byte[] boundaryBytes = Encoding.ASC 阅读全文

posted @ 2012-03-30 15:59 Y# 阅读(355) 评论(0) 推荐(0) 编辑

导航