azure-storage

The specified container does not exist

谁说我不能喝 提交于 2019-12-13 12:06:44
问题 Am stuck with this error The specified container does not exist. let me explain, CloudBlobClient blobStorage = GetBlobStorage("upload"); CloudBlockBlob blob = BlobPropertySetting(blobStorage, Guid.NewGuid().ToString().ToLower() + Path.GetExtension(file.FileName)); blob.UploadFromStream(file.InputStream); public static CloudBlobClient GetBlobStorage(string cloudBlobContainserName) { CloudBlobClient blobStorage; try { var storageAccount = CloudStorageAccount.FromConfigurationSetting(

What is the difference between the Microsoft.Azure.Storage and WindowsAzure.Storage Nuget packages?

柔情痞子 提交于 2019-12-13 11:54:01
问题 I've always found this very confusing. There is a WindowsAzure.Storage Nuget package authored by Microsoft which allows you to work with, for example, blob storage (creating blobs, etc.). There are also Microsoft.Azure.Storage.* packages which accomplish the same thing, also authored by Microsoft. If your project happens to have dependencies on both, you can have naming conflicts e.g. (The type 'CloudStorageAccount' exists in both 'Microsoft.Azure.Storage.Common, ... and 'Microsoft

Create a container storage in Azure for each user

末鹿安然 提交于 2019-12-13 08:31:20
问题 My question is simple, I have a web app where the users can upload photos and other stuff... Is a good practice create a container storage in Azure for each user in my application? My web app, now have about 40K users. I need to get the size total of the uploaded content user and I work with CDN too, but it's growing about 10K users/month. If the user pass the limit of 20Mb, I need to send an email informing the user about it. Now, in Amazon S3, we have just one bucket, and I am using

Azure storage underlying technology

我只是一个虾纸丫 提交于 2019-12-13 08:14:12
问题 What is Azure storage made of, the underlying storage technology which supports the Azure storage we access in azure portal? Is it object based storage or block storage (persistent/ephemeral) similar to categorization in Ceph? If there is a mix of block and object based, which storage is used for each of exposed Azure storage service - block blob, append blob, page blob, storage tables, storage queues, Azure files 回答1: A few years ago, Azure Storage team made a presentation about internals of

Azure File Storage - File is corrupted once uploaded

瘦欲@ 提交于 2019-12-13 07:36:43
问题 I have this code which I'm using for uploading files in azure file storage container. var originalFileName = GetDeserializedFileName(result.FileData.First()); var uploadedFileInfo = new FileInfo(result.FileData.First().LocalFileName); var uploadFolder = "/AzureDocuments" + '/' + correctLoanId ; var patString = HttpContext.Current.Server.MapPath(uploadFolder) + "/" + originalFileName; if(!Directory.Exists(HttpContext.Current.Server.MapPath(uploadFolder))) { Directory.CreateDirectory

Dot Net Core and Azure Storage: Could not load file or assembly System, Version=4.0.0.0

情到浓时终转凉″ 提交于 2019-12-13 07:29:38
问题 I have a web API running on "netcoreapp1.0" which is using Azure Storage Client. Accessing blobs has no issue at all but when I try execute any operation with tables it throws me this error: Exception thrown: 'Microsoft.WindowsAzure.Storage.StorageException' in System.Private.CoreLib.ni.dll Additional information: Could not load file or assembly 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. The system cannot find the file specified. The specific line it happens

The fastest method to move tens of thousands of small files to Azure Storage container

隐身守侯 提交于 2019-12-13 07:11:00
问题 What's the fastest way to move tens of thousands of small image files from my local machine to a container within Azure Cloud Storage? I am trying the highly-recommended CloudBerry explorer for Azure, and the estimated-time of completion is roughly 4 hours for me right now (around ~30K files in total, 5KB average file size). This is unaccetable for me - I want to drastically cut down that time. Can you suggest any other options? I think non-GUI ones will be faster. I'll provide an example

Example of writing byte array of different size sequentially to a blob in Windows Azure

天大地大妈咪最大 提交于 2019-12-13 07:08:00
问题 I've been trying to find a good example on this but I must be searching for the wrong things. Here's what I wish to do: One process writes byte arrays of different size to a blob sequentially (no need for any concurrency checks or anything like that). Each byte array is committed to the blob at each write Other processes reads from the blob from starting at different positions but reads sequentially after that Basically what I'm trying to describe is a transaction log. Any links to good

How to get a file after uploading it to Azure Storage

一笑奈何 提交于 2019-12-13 07:04:42
问题 I had uploaded files mostly media files to Azure's File Storage, which I am able to see in Azure's Explorer as well. But when I view the file as anonymous user, I am not able to view the file. Tried to check with Permissions setting as well, but to no avail. Any help would be welcomed :) 回答1: Azure files have Shared Access Signatures (SAS). This is a key that you compute with the storage account key, that gives access to a particular URL. Here is an example (storage account name is obfuscated

How fast are Azure Storage changes propagated to instances?

时光怂恿深爱的人放手 提交于 2019-12-13 06:12:17
问题 Suppose I have several role instances and one instance writes to Azure Storage (blob, tables or queue - whatever). How fast will other instances be able to see and read those changes? 回答1: There is no propagation of data from Azure Storage to Role Instances. When you request or persist data from storage you're making an OData request over the network in the background to the Azure Storage services. Because the data is stored in a central location there is only one authority for the