Upload Multiple Images In Azure Blob Storage

By: Virendra
Updated: March 27, 2018 | Technology: Asp.Net, Microsoft Azure
Upload Multiple Images In Azure Blob Storage

This is a good experience for me to work with Azure Blob Storage in my one project, I need to store large amounts of images on the server but I am facing the issue of storage on my local server and speed also. So I was used Azure Blob Storage for storing Images.This article explains how to upload multiple images to Windows Azure blob storage. Users can choose multiple images of different kinds to upload to Blob storage.

Follow these simple steps:

Steps:

  1. Create a storage account in Azure.

    https://docs.microsoft.com/en-us/azure/storage/common/storage-quickstart-create-account?tabs=portal

  2. Install the package and set a key in web.config file
    1. Click on Manage NuGet Packages to install packages
      ffff
    2. Install Windows Azure Storage
      cc
    3. Set the Azure Account key and Container Name where we store images in a web.config file
      nn
  3. Create one Controller in the App_Start folder name is “AzureHelper.cs” and then paste following code.

  1. In Index.cshtml page writes following code for upload images and shows uploaded images.

In Index Action method write this code.

Copy to Clipboard
  1. Write one Action in Home Controller for call Azure function write this code in Home Controller.
Copy to Clipboard

Example:

Upload Multiple Images In Azure Blob Storage
Upload Multiple Images In Azure Blob Storage
Upload Multiple Images In Azure Blob Storage

The source code shown in this article can be downloaded from here

https://github.com/prajapatichintan/Upload–Images-In-Azure-Blob-Storage