blobstorage

Delete folder(s) inside Azure Blob storage container

雨燕双飞 提交于 2019-12-05 05:32:58
I have a container named "pictures" , and have some folders named "Folder1", "Folder2" inside of it. So files of my blob will be addressed like this " http://optimus.blob.core.windows.net/pictures/Folder1/IMG123.png " . Using the below C# code to delete the files inside folders, CloudStorageAccount storageAccount = CloudStorageAccount.Parse(*AzureConnectionString*); CloudBlobClient blobClient = storageAccount.CreateCloudBlobClient(); CloudBlobContainer container = blobClient.GetContainerReference("pictures"); var blobs = container.ListBlobs("Folder1", true); foreach (var blob in blobs) {

Batch Uploading Huge Sets of Images to Azure Blob Storage

北城余情 提交于 2019-12-03 03:07:07
I have about 110,000 images of various formats (jpg, png and gif) and sizes (2-40KB) stored locally on my hard drive. I need to upload them to Azure Blob Storage. While doing this, I need to set some metadata and the blob's ContentType, but otherwise it's a straight up bulk upload. I'm currently using the following to handle uploading one image at a time (paralleled over 5-10 concurrent Tasks). static void UploadPhoto(Image pic, string filename, ImageFormat format) { //convert image to bytes using(MemoryStream ms = new MemoryStream()) { pic.Save(ms, format); ms.Position = 0; //create the blob,

How to use SharedAccessSignature to access blobs

守給你的承諾、 提交于 2019-12-01 02:04:48
问题 I am trying to access a blob stored in a private container in Windows Azure. The container has a Shared Access Signature but when I try to access the blob I get a StorgeClientException "Server failed to authenticate the request. Make sure the Authorization header is formed correctly including the signature". The code that created the container and uploaded the blob looks like this: // create the container, set a Shared Access Signature, and share it // first this to do is to create the

Cloud storage and secure download strategy on app engine. GCS acl or blobstore

跟風遠走 提交于 2019-11-30 22:07:12
My appengine app creates cloudstorage files. The files will be downloaded by a third party. The files contain personal medical information . What would be the preferred way of downloading: Using a direct GCS download link with a user READER acl. Or using a blobstore download handler in an appengine app. Both solutions require the third party to login (google login). Performance is not an issue. Privacy and the occurrence of security errors and mistakes are. Using an encrypted zip file to download is an option. This means I have to store the password in the project. Or e-mail a random password?

Azure Blob 400 Bad request on Creation of container

浪尽此生 提交于 2019-11-29 02:50:18
I'm developing an ASP.Net MVC 4 app and I'm using Azure Blob to store the images that my users are going to upload. I have the following code: var storageAccount = CloudStorageAccount.Parse(ConfigurationManager.ConnectionStrings["StorageConnection"].ConnectionString); var blobStorage = storageAccount.CreateCloudBlobClient(); //merchantKey is just a GUID that is asociated with the merchant var containerName = ("ImageAds-" + merchant.merchantKey.ToString()).ToLower(); CloudBlobContainer container = blobStorage.GetContainerReference(containerName); if (container.CreateIfNotExist()) { //Upload the

Windows Azure Storage Certificate Expired

≯℡__Kan透↙ 提交于 2019-11-28 22:19:14
The certificate for our Azure blob storage expired today. This is not a certificate provided by us but provided by Microsoft as show in the picture below. How does one go about fixing this? I have tried searching for a solution but found nothing. Our app cannot connect to the storage as the certificate has expired and we are getting an error indicating: Could not establish trust relationship for the SSL/TLS secure channel dr. foot fist headknocker As a temporary measure I was able to log into the azure portal and change the protocol part of the connection string from https to http. Two more

Upload file to Azure Blob Storage directly from browser?

房东的猫 提交于 2019-11-28 06:25:47
Is it possible to create an html form to allow web users to upload files directly to azure blob store without using another server as a intermediary? S3 and GAW blobstore both allow this but I cant find any support for azure blob storage. Do take a look at these blog posts for uploading files directly from browser to blob storage: http://coderead.wordpress.com/2012/11/21/uploading-files-directly-to-blob-storage-from-the-browser/ http://gauravmantri.com/2013/02/16/uploading-large-files-in-windows-azure-blob-storage-using-shared-access-signature-html-and-javascript The 2nd post (written by me)

Azure Blob 400 Bad request on Creation of container

心不动则不痛 提交于 2019-11-27 15:31:31
问题 I'm developing an ASP.Net MVC 4 app and I'm using Azure Blob to store the images that my users are going to upload. I have the following code: var storageAccount = CloudStorageAccount.Parse(ConfigurationManager.ConnectionStrings["StorageConnection"].ConnectionString); var blobStorage = storageAccount.CreateCloudBlobClient(); //merchantKey is just a GUID that is asociated with the merchant var containerName = ("ImageAds-" + merchant.merchantKey.ToString()).ToLower(); CloudBlobContainer

Windows Azure Storage Certificate Expired

蓝咒 提交于 2019-11-27 14:18:42
问题 The certificate for our Azure blob storage expired today. This is not a certificate provided by us but provided by Microsoft as show in the picture below. How does one go about fixing this? I have tried searching for a solution but found nothing. Our app cannot connect to the storage as the certificate has expired and we are getting an error indicating: Could not establish trust relationship for the SSL/TLS secure channel 回答1: As a temporary measure I was able to log into the azure portal and