azure-storage-blobs

Azure AppendBlob number of block/writes

拟墨画扇 提交于 2020-01-13 19:36:48
问题 I am using AppendBlob in Azure for logging. After some time I experienced 409 Conflict Error . My guess is the maximal amount of block/writes (50.000) was reached. Is there any way to get count of blocks/writes in the blob? 回答1: In Azure Reference, you can find the table of Blob Service Error Codes which list the error codes may be returned by an operation against the Blob service includes Conflict 409 , please see below. The details for the maximums of AppendBlob , you can refer to the

How to upload zip file to azure blob then unzip it there [closed]

江枫思渺然 提交于 2020-01-13 08:26:08
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 2 years ago . I have lot of zip files, which will have few folders and 50+ files in it. How can I upload those zip files to azure blob then unzip it there. Unzipping the file in server and uploading files in it one by one to azure blob will be a cumbersome process. Does azure has any easy way to achieve this or

Reuse CloudBlobClient Object

旧巷老猫 提交于 2020-01-12 15:03:20
问题 I have these two objects for Azure Blob Storage access and want to use them in ASP.NET MVC application. CloudBlobClient blobClient = storageAccount.CreateCloudBlobClient(); CloudBlobContainer container = blobClient.GetContainerReference("Deesd"); My question is: Can I reuse the same instance of the objects across all the application requests, or should I instantiate a new object in every method? 回答1: You can reuse instances, just don't access the same instance from multiple threads

CloudBlockBlob.DownloadToStream vs DownloadRangeToStream

 ̄綄美尐妖づ 提交于 2020-01-12 05:37:08
问题 Trying to use the ASP.NET azure SDK for downloading images from blob storage.. I read in another post that DownloadToStream does break blobs up into smaller pieces and downloads them in parallel in order to increase performance. I believe this is what DownloadRangeToStream is for. I have not been able to find any documentation or code confirming this statement about DownloadToStream, and am skeptical because it has the same runtime as just downloading straight from the blob url (.5-3s per

Restrict access to static website hosted on azure storage to intended users

喜欢而已 提交于 2020-01-11 12:37:10
问题 I hosted a simple website in Azure storage using the static website feature. The url of the website is now publicly available. (anyone with the url can access the website). But my intention is to provide access only to the users who I want to. Is there a way that can restrict the public access to the static website hosted in Azure storage? 回答1: Static website hosting makes the files available for anonymous access. If you need to control who can access the files, you can store files in Azure

azure blob returns 403 forbidden with correct access key

随声附和 提交于 2020-01-11 02:08:13
问题 My test site has after a deploy started to get 403 forbidden back when trying to access files from the azure blob storage. This is only a problem on our test environment, the new release works just fine in production. Both production and test is hosted in azure, and both use their own azure blob storage. I have tried regenerating the access keys for the blob storage, without any luck. I can use the access keys locally and connect to the test blob storage and access the files just fine. If i

Azure Blob: “The condition specified using HTTP conditional header(s) is not met”

橙三吉。 提交于 2020-01-10 03:48:05
问题 I got this exception when I run my application. It happens also in the real Azure blob storage. I've caught with Fiddler the request that creates this problem: GET http://127.0.0.1:10000/devstoreaccount1/ebb413ed-fdb5-49f2-a5ac-74faa7e2d3bf/8844c3ec-9e4b-43ec-88b2-58eddf65fc0a/perro?timeout=90 HTTP/1.1 x-ms-version: 2009-09-19 User-Agent: WA-Storage/6.0.6002.18006 x-ms-range: bytes=0-524304 If-Match: 0x8CDA190BD304DD0 x-ms-date: Wed, 23 Feb 2011 16:49:18 GMT Authorization: SharedKey

Azure Function - Resize image stored in a blob container

人盡茶涼 提交于 2020-01-09 11:19:42
问题 I've answered this question related to Azure Webjob and Resizing a image stored as a blob and so I am trying to do the same using a Function App Each time a new blob is uploaded, I send a a new queue message. My function is triggered by the queue message and bind to the uploaded blob. I also have a second input binding that binds to another CloudBlobContainer to be able to upload new resized images to another blob container. My function looks like that: #r "System.Web" using System.IO; using

Are append operations on an AppendBlob atomic?

我只是一个虾纸丫 提交于 2020-01-06 19:58:45
问题 I am using append blob to store a large binary file. I've got the file in parts (every part is less than 4 MB) and append them to make it whole again. If an append operation fails during the process, are there any remains on the file from this failed append attempt? Or this append operation is atomic? 回答1: If the storage service returns a failure code, nothing remains from the failed attempt. This assumes 'attempt' means a single storage service call (ex append 4MB block). 回答2: With an Append

Are append operations on an AppendBlob atomic?

試著忘記壹切 提交于 2020-01-06 19:58:30
问题 I am using append blob to store a large binary file. I've got the file in parts (every part is less than 4 MB) and append them to make it whole again. If an append operation fails during the process, are there any remains on the file from this failed append attempt? Or this append operation is atomic? 回答1: If the storage service returns a failure code, nothing remains from the failed attempt. This assumes 'attempt' means a single storage service call (ex append 4MB block). 回答2: With an Append