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)); }
public async Task <Stream> CreateAsync() { await AzureBlobStorageApi.MakeFileAsync(FullName); // todo: not tested return(await AzureBlobStorageApi.FileStreamAsync(FullName)); // Return empty memory string // return new MemoryStream(); }
public Task <Stream> OpenReadAsync() { return(AzureBlobStorageApi.FileStreamAsync(BlobItemName)); }