public void LoadStreamWithFile(String localfile) { this.dataStream = File.OpenRead(localfile); this.contentType = ThreeSharpUtils.ConvertExtensionToMimeType(Path.GetExtension(localfile)); this.BytesTotal = ((FileStream)this.dataStream).Length; }
/// <summary> /// Loads the request stream with a file. Content type will be determined by file extension. /// </summary> public void LoadStreamWithFile(String localfile) { LoadStreamWithFile(localfile, ThreeSharpUtils.ConvertExtensionToMimeType(Path.GetExtension(localfile))); }