Beispiel #1
0
        public async Task <JsonResult> DimAsync(FullPath path)
        {
            await using var stream = await AzureBlobStorageApi.FileStreamAsync(path.File.FullName);

            var response = new DimResponseModel(path.RootVolume.PictureEditor.ImageSize(stream));

            return(await Json(response));
        }
Beispiel #2
0
        public async Task <Stream> CreateAsync()
        {
            await AzureBlobStorageApi.MakeFileAsync(FullName);

            // todo: not tested
            return(await AzureBlobStorageApi.FileStreamAsync(FullName));

            // Return empty memory string
            // return new MemoryStream();
        }
Beispiel #3
0
 public Task <Stream> OpenReadAsync()
 {
     return(AzureBlobStorageApi.FileStreamAsync(BlobItemName));
 }