tagged [azure-storage]

How to get file from Azure storage blob in a ByteArray format using Azure.Storage.Blobs in C#

How to get file from Azure storage blob in a ByteArray format using Azure.Storage.Blobs in C# I have a requirement to get the files from Azure storage in the byte array format using new package Azure....

Settings must be of the form "name=value". No idea what to do

Settings must be of the form "name=value". No idea what to do So I'm parsing a connection string for an Azure Storage Account and when I get to the page of the app that uses the connection string, the...

18 Apr at 16:50

URL to access private blob in Azure Storage

URL to access private blob in Azure Storage We're just getting started with Azure Storage. In our scenario we upload to private blobs that we later need to access directly from our client app, e.g. im...

Is it possible to read File from same folder where Azure function exists

Is it possible to read File from same folder where Azure function exists In my Azure C# function I need to read a .txt file. I make the .txt file in Visual studio and set it to "copy Always". Now I am...

Azure downloadtostreamasync method hangs

Azure downloadtostreamasync method hangs here is the offending code ``` public async static Task AsyncReadBlob(string identifier) { CloudStorageAccount storageAccount = CloudStorageAccount.Parse...

How to retrieve latest record using RowKey or Timestamp in Azure Table storage

How to retrieve latest record using RowKey or Timestamp in Azure Table storage Tricky part is `RowKey` is `string` which is having value like `Mon Nov 14 12:26:42 2016` I tried query using `Timestamp`...

14 Nov at 17:46

Mocking a CloudBlockBlob and have it return a stream

Mocking a CloudBlockBlob and have it return a stream I'm trying to Moq an Azure `CloudBlockBlob` and have it return a `Stream` so that I can test whether my `BlobStorage` repository is handling the ou...

30 Mar at 16:18

How can I encode Azure storage table row keys and partition keys?

How can I encode Azure storage table row keys and partition keys? I'm using Azure storage tables and I have data going in to the RowKey that has slashes in it. According to [this MSDN page](http://msd...

15 Jan at 17:49

upload files to Azure file storage from web app using rest api

upload files to Azure file storage from web app using rest api I have a web app that is currently using webforms, not MVC, which is going to be hosted on the Azure platform. The main function of this ...

Do Webjobs automatically renew leases on Azure Queue messages?

Do Webjobs automatically renew leases on Azure Queue messages? When Webjobs get a message from a queue on Azure Storage via QueueTrigger, it leases the message (makes it invisible). If the triggering ...

Does TableQuery support OrderBy?

Does TableQuery support OrderBy? I can't figure out how to add a [OrderBy](http://www.odata.org/getting-started/basic-tutorial/#orderby) clause to a [TableQuery](https://msdn.microsoft.com/en-us/libra...

26 Apr at 12:12

Azure Storage Table Paging

Azure Storage Table Paging To implement paging in Azure Storage in relatively straight forward: [Paging with Windows Azure Table Storage](http://scottdensmore.typepad.com/blog/2010/04/paging-with-wind...

Unexpected response code from CloudTable.ExecuteBatch(..)

Unexpected response code from CloudTable.ExecuteBatch(..) When trying to do a batch insert to Azure Table Storage, I am getting a `StorageException` on `CloudTable.ExecuteBatch()`: > Microsoft.Windows...

Uploading blockblob and setting contenttype

Uploading blockblob and setting contenttype I'm using `Microsoft.WindowsAzure.Storage.*` library from C#. This is how I'm uploading things to storage: ``` // Store in storage CloudStorageAccount stora...

This request is not authorized to perform this operation. Azure blobClient

This request is not authorized to perform this operation. Azure blobClient I have the following code to return a list of containers using the `WindowsAzure.Storage` nuget package: ``` public static cl...

14 May at 12:42

CloudBlob.DownloadToStream returns null

CloudBlob.DownloadToStream returns null I'm trying to download a file from cloudBlob via stream. I refer to this article [CloudBlob](http://jeanpaulva.com/category/azure/) Here is the code to downloa...

5 Jun at 07:10

OData Serialization and Deserialization

OData Serialization and Deserialization I need to convert my custom class (c#) object into OData Json format and then convert it back to my object. Is there any library available to do this. I need so...

How to start Azure Storage Emulator from within a program

How to start Azure Storage Emulator from within a program I have some unit tests that use Azure Storage. When running these locally, I want them to use the Azure Storage emulator which is part of the ...

25 Sep at 19:23

Azure Storage 403 Forbidden exception a 32-bit issue?

Azure Storage 403 Forbidden exception a 32-bit issue? We've spent quite some time to locate the reason for the following exception: Stacktrace: ``` at Microsoft.WindowsAzure.Storage.Core.Executor.Exec...

4 May at 09:27

The specified container does not exist

The specified container does not exist Am stuck with this error `The specified container does not exist.` let me explain, ``` CloudBlobClient blobStorage = GetBlobStorage("upload"); CloudBlockBlob blo...

Azure Storage Calculated MD5 does not match existing property

Azure Storage Calculated MD5 does not match existing property I'm trying to pass an Azure Storage blob through an ashx. On the it's throwing the following Exception: `Microsoft.WindowsAzure.Storage.S...

29 Apr at 14:2

Unable to get queue length / message count from Azure

Unable to get queue length / message count from Azure I have a Use Case where I need to queue a select number of messages when the current queue length drops below a specified value. Since I'm running...

21 Jun at 14:11

Could not load file or assembly 'msshrtmi' or one of its dependencies (Azure Table Storage Access)

Could not load file or assembly 'msshrtmi' or one of its dependencies (Azure Table Storage Access) I have an HTTPModule that I use to redirect traffic between a website in my data center and a website...

25 Nov at 19:10

Is there a storage library that abstracts away Azure, S3 and others?

Is there a storage library that abstracts away Azure, S3 and others? I am developing an application that supports running in the cloud, either Amazon or Azure. Once of the components I need is an abst...

Upload to Azure Blob Storage with Shared Access Key

Upload to Azure Blob Storage with Shared Access Key [implemented solution to this problem](http://tech.trailmax.info/2013/07/upload-files-to-azure-blob-storage-with-using-shared-access-keys/) I'm tryi...