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(); } }