azure-storage-blobs

PartitionKey was not specified in azure table storage

浪子不回头ぞ 提交于 2019-12-04 09:39:49
I am trying to load/import the data into table storage from a csv file via azure storage explorer , but I am getting the following error as An error occurred while opening the file 'D//sample.csv'.the required property 'Partitionkey' was not specified. Kindly clarify the importance of Partitionkey and Rowkey in azure table storage? Azure Storage Key has been discussed here: Azure Table Storage Partition Key In order to understand this, you will need to know what Partitions are. Whenever you upload something to Azure Storage , it is assigned to some partition. These partitions can be either on

Asynchronous download of an Azure blob to string with .NET 4.5 async, await

断了今生、忘了曾经 提交于 2019-12-04 09:16:35
问题 I'm trying to implement a fully asynchronous blob download with .NET 4.5 async & await. Let's assume the entire blob can fit in memory at once, and we want to hold it in a string . Code: public async Task<string> DownloadTextAsync(ICloudBlob blob) { using (Stream memoryStream = new MemoryStream()) { IAsyncResult asyncResult = blob.BeginDownloadToStream(memoryStream, null, null); await Task.Factory.FromAsync(asyncResult, (r) => { blob.EndDownloadToStream(r); }); memoryStream.Position = 0;

How Do I Backup Azure Tables and Blobs

左心房为你撑大大i 提交于 2019-12-04 09:10:22
问题 I store data in Azure Storage tables and blob storage. I would like to automatically backup my data to protect against accidental data corruption by users or by a software issue. There isn't a good solution for this from Microsoft and, while there are paid solutions for automatic backups, it seems like there should be a straight-forward way to backup and restore this data. 回答1: After doing a lot of research on the best way to automatically backup data, I found that the easiest way to do this

Uploading Multiple Files to Azure Blob Storage

北城余情 提交于 2019-12-04 07:51:06
Pretty new to Windows Azure. I've followed this tutorial: tutorial . It works perfectly however one limitation is that for the application I have in mind, it would need to be possible to upload multiple files relatively quickly. Is it possible to modify the tutorial to support multi-file uploads, e.g. The user can use shift-click to select multiple files.. Or if anyone knows of any good tutorials detailing the above? Any help is appreciated, Thanks I'd take a look at this tutorial from DotNetCurry which shows how to create a multiple file upload using jQuery to handle the multiple uploading of

How do I upload a file to Azure blob storage from a MVC view

醉酒当歌 提交于 2019-12-04 07:46:45
I am coding a MVC5 internet application and would like some help to upload a file from my own filesystem to an Azure Blob. Here is my Azure upload code function: public void UploadFileToBlobStorage(string containerName, string blockBlogName, string fileName) { // Retrieve storage account from connection string. CloudStorageAccount storageAccount = CloudStorageAccount.Parse( CloudConfigurationManager.GetSetting("StorageConnectionString")); // Create the blob client. CloudBlobClient blobClient = storageAccount.CreateCloudBlobClient(); // Retrieve reference to a previously created container.

Difference between OpenReadAsync and DownloadFromStreamAsync functions of CloudBlockBlob

风流意气都作罢 提交于 2019-12-04 06:38:23
What is the difference between OpenReadAsync and DownloadToStreamAsync functions of CloudBlockBlob in the Azure blob storage? Searched in google but could not find an answer. Both OpenReadAsync and DownloadToStreamAsync could initiate an asynchronous operation for you to retrieve the blob stream. Based on my testing, you could have a better understanding of them by the following sections: Basic Concepts DownloadToStreamAsync:Initiates an asynchronous operation to download the contents of a blob to a stream. OpenReadAsync:Initiates an asynchronous operation to download the contents of a blob to

Download File from Azure Blob Storage

你离开我真会死。 提交于 2019-12-04 06:32:33
I have an application that allows users to upload photos, which are stored in Azure Blob Storage. The user also has the ability to view these photos. To view them, we want the application to download the image to the default download location. At the moment, the upload works perfect. But the download function that I found for Azure API doesn't seem to be doing anything. Also, I can't really specify a download location because this functionality needs to work on desktop/laptops as well as on mobile devices which have different default directories. This seems like it should be simple but I

Getting issue while installing Window Azure Storage package

僤鯓⒐⒋嵵緔 提交于 2019-12-04 04:10:27
问题 I am getting following issue while installing the Azure storage package via Nuget Attempting to resolve dependency 'Microsoft.Data.OData (≥ 5.6.2)'. Attempting to resolve dependency 'System.Spatial (= 5.6.3)'. Attempting to resolve dependency 'Microsoft.Data.Edm (= 5.6.3)'. 'WindowsAzure.Storage' already has a dependency defined for 'Microsoft.Data.OData'. 回答1: Upgrade to NuGet 2.8.3. I was seeing the same error message with NuGet 2.8.1 and 2.8.2 trying to restore the WindowsAzure.Storage

uploading to azure storage from memorystream returning an empty file

故事扮演 提交于 2019-12-04 03:59:37
问题 I'm writing a System.Drawing.Bitmap to Azure storage using a memory stream. I have the correct credentials and everything azure side wires up correctly. I have uploaded an image into a blob successfully using an input stream so I think it must be a problem with how i am using the memorystream object. After looking about for a while, the general solution to my problem looked to be setting the memorystream position to 0, that hasn't worked for me however and an empty file is still being saved

Azure Storage Emulator store data on specific path

回眸只為那壹抹淺笑 提交于 2019-12-04 02:52:51
At my current PC setup I have an SSD and a normal hard drive installed. The SSD only has a capacity of 120GB and since I'm developing a large application which stores allot of files in azure blob storage I whish to specify to which hard drive the microsoft azure storage emulator has to store my files. I am using the latest storage emulator (3.0). Thx Gaurav Mantri Storage emulator keeps this setting in a file called WAStorageEmulator.5.2.config which can be found in C:\Users\{Your Current User Name}\AppData\Local\AzureStorageEmulator folder. Open up this file and change the settings for