Beispiel #1
0
        private async Task <byte[]> DownloadRange(PageBlobClient client, HttpRange range)
        {
            var memoryStream = new MemoryStream();

            using BlobDownloadStreamingResult result1 = await client.DownloadStreamingAsync(range : range);

            await result1.Content.CopyToAsync(memoryStream);

            return(memoryStream.ToArray());
        }