MonkeyWrench.DB.Download C# (CSharp) Method

Download() public method

public Download ( DBFile file ) : Stream
file MonkeyWrench.DataClasses.DBFile
return Stream
		public Stream Download (DBFile file)
		{
			if (file.file_id.HasValue) {
				return new DBFileStream (file, this);
			} else {
				return new System.IO.Compression.GZipStream (new FileStream (DBFile_Extensions.GetFullPath (file.md5), FileMode.Open, FileAccess.Read), System.IO.Compression.CompressionMode.Decompress);
			}
		}

Same methods

DB::Download ( MonkeyWrench.DataClasses.DBWorkFile file ) : Stream
DB::Download ( DBWorkFileView file ) : Stream