azure-storage-blobs

Azure Blob Storage Java SDK: Why isn't asynchronous working?

岁酱吖の 提交于 2019-12-13 03:49:57
问题 I am still spinning up on the Azure Storage Java SDK 10 and its use of reactive programming the paradigm. I wrote the following method to asynchronously download a blob to a byte stream as fast as possible. When I use the synchronous version (below), it works properly. When I comment out the blockingAwait() and uncomment the subscribe, the write and the doOnComplete never are executed... Basically, the run just falls out of the bottom of the method back to the caller. I am sure that I have

create a Share Account signature in c#

雨燕双飞 提交于 2019-12-13 03:39:37
问题 I would like to access a file located in azure file shares to copy it into blob storage. It works when I create Shared Access Signature by using the Microsoft Azure Storage Explorer by right-clicking on the file and going through the process and then hardcode generated value in the code. But I cannot generate this value using this C# code. var sharedAccessFilePolicy = new SharedAccessFilePolicy() { Permissions = SharedAccessFilePermissions.Read, SharedAccessStartTime = DateTime.Now,

Blob Trigger Azure function execution?

家住魔仙堡 提交于 2019-12-13 03:37:23
问题 I have an Azure function which is triggered by changes in the blob. [FunctionName("...")] public static void Run([BlobTrigger("...", Connection = "")]Stream myBlob, string name, ILogger log) { var processor = new ProcessBusiness(....); processor.CallA(); CallB(); } There is a function called CallA() In that function, I make a call to a stored procedure which takes a lot of time to execute and I expect the function CallB() to be executed when CallA() finishes. But it does not behave like this.

Use Python to process images in Azure blob storage

南楼画角 提交于 2019-12-13 03:19:35
问题 I have 1000s of images sitting in a container on my blob storage. I want to process these images one by one in Python and spit out the new images out into a new container (the process is basically detecting and redacting objects). Downloading the images locally is not an option because they take up way too much space. So far, I have been able to connect to the blob and have created a new container to store the processed images in, but I have no idea how to run the code to process the pictures

SharedKeyCredential is not a constructor. Azure-storage react app

穿精又带淫゛_ 提交于 2019-12-13 02:50:55
问题 I'm trying to use the following code to upload a blockblob to Azure-Storage in a react app. However, I'm getting the following error. TypeError: SharedKeyCredential is not a constructor Any ideas? @azure/storage-blob@10.3.0 import React from 'react'; const { Aborter, BlobURL, BlockBlobURL, ContainerURL, ServiceURL, StorageURL, SharedKeyCredential, AnonymousCredential, TokenCredential } = require("@azure/storage-blob"); // Change to "@azure/storage-blob" in your package function App() { return

Azure Blob Lease Doesn't Release Upon Ungraceful Exit?

為{幸葍}努か 提交于 2019-12-13 01:37:47
问题 Let me preface this problem with the following: I've only tested this using the storage emulator. (SDK 1.5.) Using a quickly built console app and local storage emulator, I created a fail scenario to test how a blob lease behaves upon the application exiting ungracefully. In the Azure production version, it would be in the form of multiple web role instances accessing the single blob and locking it via leases. I've had web role instances fail out, so I figured this would be a good test

How to download files from Azure Blob Storage with a Download Link

你说的曾经没有我的故事 提交于 2019-12-12 20:42:33
问题 I made an Azure Cloud Service, where you can upload and delete files to the cloud storage using Blobs. I wrote sucessfully a method where you can delete the uploaded blobs from the cloud service: public string DeleteImage(string Name) { Uri uri = new Uri(Name); string filename = System.IO.Path.GetFileName(uri.LocalPath); CloudBlobContainer blobContainer = _blobStorageService.GetCloudBlobContainer(); CloudBlockBlob blob = blobContainer.GetBlockBlobReference(filename); blob.Delete(); return

Blob storage access from Azure App Service

て烟熏妆下的殇ゞ 提交于 2019-12-12 20:39:27
问题 I have an issue with accessing blob storage from an App Service Mobile App (Not MobileService). I previously have had a MobileService running that accessed the Blob Storage in the following way: // Set the URI for the Blob Storage service. Uri blobEndpoint = new Uri(string.Format("https://{0}.blob.core.windows.net", storageAccountName)); // Create the BLOB service client. CloudBlobClient blobClient = new CloudBlobClient(blobEndpoint, new StorageCredentials(storageAccountName,

How do you generate the signature for an Azure Blob storage SAS token in Python?

≯℡__Kan透↙ 提交于 2019-12-12 20:25:15
问题 I am trying to build the SAS token required for a blob download URL in Python, following the instructions from MSDN. My string to sign looks like: r\n 2016-12-22T14%3A00%3A00Z\n 2016-12-22T15%3A00%3A00Z\n %2Fblob%2Fmytest%2Fprivatefiles%2F1%2Fqux.txt\n \n \n https\n 2015-12-11\n \n \n \n \n _ I've added the newline symbols for clarity and the last line is supposed to be an empty line (with no newline at the end). The Python method I use for signing the string is: def sign(self, string):

Azure BLOB storage phantom requests

北城余情 提交于 2019-12-12 18:21:45
问题 I see strange requests when uploading blobs to storage. The only methods I use is PutBlob and SetBlobTier . But metrics shows large amount of GetBlobProperties requests with time interval about 1 hour. It seems like Azure makes some extra requests for statistic purposes. It happens only when uploading process is running. At attached diagram you can see 4 peaks of GetBlobProperties requests. Does anybody know what is it? Another question is, will I be billed for this requests? 回答1: Any API