Beispiel #1
0
        public void LoadStreamWithFile(String localfile)
        {
            this.dataStream = File.OpenRead(localfile);

            this.contentType = ThreeSharpUtils.ConvertExtensionToMimeType(Path.GetExtension(localfile));
            this.BytesTotal  = ((FileStream)this.dataStream).Length;
        }
Beispiel #2
0
 /// <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)));
 }