Revenj.S3.GetBytes C# (CSharp) Method

GetBytes() public method

public GetBytes ( ) : byte[]
return byte[]
        public byte[] GetBytes()
        {
            if (string.IsNullOrEmpty(Key))
                return null;
            using (var ms = new MemoryStream())
            {
                Repository.Get(Bucket, Key).Result.CopyTo(ms);
                ms.Position = 0;
                return ms.ToArray();
            }
        }