azure-storage-blobs

Decrypting CryptoStream into MemoryStream

丶灬走出姿态 提交于 2019-12-11 20:51:50
问题 I have written a process where a file is encrypted and uploaded to Azure, then the download process has to be decrypted which is what fails with a "Padding is invalid and cannot be removed" error, or a "Length of the data to decrypt is invalid." error. I've tried numerous solutions online, including C# Decrypting mp3 file using RijndaelManaged and CryptoStream, but none of them seem to work and I end up just bouncing back and forth between these two errors. The encryption process uses the

list virtual folders in azure blob storage via python API

依然范特西╮ 提交于 2019-12-11 20:11:35
问题 I was reading this tutorial but I cannot find a way to list all the (virtual) folder under a container without getting all the files. I have 26K files in 500 (virtual) folders. I just want to get the list of folder without having to wait few minutes to get the output of list_blobs containing the entire file list. Is there a way to do that? or at least tell list_blobs to not go deeper than n levels below a container? 回答1: You can try something like the following: from azure.storage import

Get-AzureStorageBlobContent Exception to download a blob

泪湿孤枕 提交于 2019-12-11 19:47:52
问题 I am using following command to download blob from provided container but it give me following exception. Code $subscriptionName = "mysubscrition" $storageAccount = "myaccount" $containerName = "mycontainer" Set-AzureSubscription -SubscriptionName $subscriptionName -CurrentStorageAccount $storageAccount Get-AzureStorageContainer -Container $containerName Get-AzureStorageBlob -Container $containerName | Sort LastModified -Descending |Select-Object -First 1 | Get-AzureStorageBlobContent -Blob

How to download an Azure BLOB Storage file via URL

被刻印的时光 ゝ 提交于 2019-12-11 19:45:32
问题 We've created a folder structure on Azure Storage like below: parentcontainer -> childcontainer -> {pdffiles are uploaded here} We have the URL of the stored .pdf files. We don't want to hard code any container name, just download the file using its URL. Our current attempt at doing this: CloudStorageAccount cloudStorageAccount = CloudStorageAccount.Parse(StorageConnectionString); CloudBlobClient blobClient = cloudStorageAccount.CreateCloudBlobClient(); CloudBlobContainer cloudBlobContainer =

How to access XML hosted as azure blob from azure website

左心房为你撑大大i 提交于 2019-12-11 18:33:20
问题 I'm currently looking into problem: We have a backend application that creates XML files with content and stores them as Azure Blobs (we cannot change this). Blob sample url: http://mytestaccount.blob.core.windows.net We are implementing a webpage that consumes those XML files. Our current solution is static webpage (no iis or any other server required) hosted on the same blob as mentioned XML files. Question 1: Is there a way to redirect a domain name to our webpage hosted currently as blob?

node js azure SDK getBlobToStream uses lots of memory

时光毁灭记忆、已成空白 提交于 2019-12-11 16:08:00
问题 I am writing a backup script that simply downloads all the blobs in all the blob containers of a specific Azure account. The script uses async.js to make sure only so much threads can run at the same time so it doesn't overload the server. When I run this script it works fine, but when it hits large files it runs out of memory. I'm guessing the download runs faster than the disk can write, and it eventually fills up the in-memory buffer so badly that I run out of memory entirely, but

Can't CREATE EXTERNAL DATA SOURCE in SQL

血红的双手。 提交于 2019-12-11 15:27:45
问题 I'm trying to create an external data source to access Azure Blob Storage. However, I'm having issues with creating the actual data source. I've followed the instructions located here: Examples of bulk access to data in azure blob storage and Create external data source - transact sql. I'm using SQL Server 2016 on a VM accessing via SSMS on a client machine using Windows Authentication with no issues. Instructions say creating this external data source works for SQL Server 2016 and Azure Blob

Get Authentication error when put object to Azure storage

家住魔仙堡 提交于 2019-12-11 15:27:09
问题 I am using java to make a REST Api call to Azure, put an object to its storage. I did this successfully last week but now its now working for some reasons. The error message is as below: <?xml version="1.0" encoding="utf-8" ?> <Error> <Code>AuthenticationFailed</Code> <Message>Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature. RequestId:a15f2626-0001-004f-778c-f34383000000 Time:2017-07-02T23:43:20.2826278Z<

Shared Access Signatures function for PHP / AuthenticationFailed

我们两清 提交于 2019-12-11 14:15:47
问题 As noticed here, the shared access signature is not supported in the Azure SDK for PHP. So I developed my own function to generate the signed-url using the Miscrosoft Azure documentation (here) and the PHPAzure Codeplex project and source code (here) I want to generate an signed-url that may be called directly in a web browser vithout using a developed software client. My generated signed-url always returns an "AuthenticationFailed" with the detail "Signature did not match. Signature did not

How can I use TPL with the new APIs in Azure StorageClient 2.0 and newer?

梦想与她 提交于 2019-12-11 14:09:53
问题 The Azure Storage client was recently updated to version 2.0, and I haven't found any API that returns Task. How can I use TPL with Table Storage? .. Blob or Queue? For your reference the new API has an example here for Table Storage. 回答1: Looking through some of the source under https://github.com/WindowsAzure/azure-sdk-for-net/ it appears that they haven't had a chance to add the Task versions yet (seems odd since it specifically mentions targeting .NET 4), but the operations appear to have