Using blobs
In this section, we will learn how to use blob storage and how to upload and download files from blob storage. One of the requirements for Geotopia is that users must have the ability to send each other large files and be notified through Facebook or e-mail, for example. The uploaded file is stored in blob storage and the unique URI is sent to the receiver. This section contains snippets of code that demonstrate how to upload, download, and use the parallel abilities of the .NET framework.
File transfer
The Geotopia domain needs a feature that enables users to upload files such as images and video to a central place where they are stored and made available for other users.
To enable this, we have created a class called AzureBlobUtil
, which enables uploading blobs to a designated container and downloading files to a local disk.
The following code snippet demonstrates how the
AzureBlobUtil
class can be utilized:
AzureBlobUtil _blobUtil = new AzureBlobUtil(); CloudStorageAccount...