Amazon.S3.IO.S3FileInfo.OpenRead C# (CSharp) Метод

OpenRead() публичный Метод

Returns a Stream for reading the contents of the file.
The file is already open.
public OpenRead ( ) : Stream
Результат Stream
        public Stream OpenRead()
        {
            return new S3FileStream(this.S3Client, this.BucketName, this.ObjectKey, FileMode.Open, FileAccess.Read);
        }

Usage Example

        public Stream GetObjectStream(string path)
        {
            path = CleanPath(path);
            var file = new S3FileInfo(_client, _amazonS3StorageConfiguration.AWSFileBucket, path);

            return file.OpenRead();
            //return Download(path);
        }