using (FileStream fs = File.OpenRead(path)) { this.Date = File.GetLastWriteTime(path); this.ContentLength = fs.Length; this.ContentType = mediaType; this.ChunkedTransferEncoding = false; _stream = new HTTPOutputStream(_session); Write(_stream); int rc; byte[] bytes = new byte[65536]; do { rc = fs.Read(bytes, 0, 65536); _stream.Write(bytes, 0, rc); } while (rc != 0); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)