Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Windows Azure programming patterns for Start-ups

You're reading from   Windows Azure programming patterns for Start-ups A step-by-step guide to create easy solutions to build your business using Windows Azure services with this book and ebook.

Arrow left icon
Product type Paperback
Published in Oct 2012
Publisher Packt
ISBN-13 9781849685603
Length 292 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Riccardo Becker Riccardo Becker
Author Profile Icon Riccardo Becker
Riccardo Becker
Arrow right icon
View More author details
Toc

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...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime