azure-storage-blobs

Stream uploaded file to Azure blob storage with Node

余生颓废 提交于 2019-12-18 11:02:38
问题 Using Express with Node, I can upload a file successfully and pass it to Azure storage in the following block of code. app.get('/upload', function (req, res) { res.send( '<form action="/upload" method="post" enctype="multipart/form-data">' + '<input type="file" name="snapshot" />' + '<input type="submit" value="Upload" />' + '</form>' ); }); app.post('/upload', function (req, res) { var path = req.files.snapshot.path; var bs= azure.createBlobService(); bs.createBlockBlobFromFile('c', 'test

Parallel Blob Upload throwing 404 Bad Request intermittently

允我心安 提交于 2019-12-18 04:53:06
问题 I have a very simple service, public class AzureService : IAzureService { private readonly CloudBlobContainer _container; public AzureService(ISettings settings) { var storageAccount = CloudStorageAccount.Parse(settings.BlobConnectionString); var blobClient = storageAccount.CreateCloudBlobClient(); _container = blobClient.GetContainerReference(settings.BlobContainerName); } public Task UploadBlobAsync(string fileName, Stream stream) { var blob = _container.GetBlockBlobReference(fileName);

hosting fonts on azure cdn - CORS support

拥有回忆 提交于 2019-12-18 04:48:15
问题 I cannot get azure blob storage hosted fonts exposed via azure cdn working in IE or Firefox. I believe this is because of @font-face cross-domain issues (CORS) and the normal solution is to add an Access-Control-Allow-Origin header. I know that most CDNs now support this but am assuming that Azure still doesn't. Can anyone confirm this? If this is the case, are there any workarounds? 回答1: This is no longer true, azure supports CORS http://blogs.msdn.com/b/windowsazurestorage/archive/2013/11

Upload file with Azure Storage using SAS (Shared Access Signature)

ε祈祈猫儿з 提交于 2019-12-18 02:49:49
问题 I know that there is library available for uploading the file using Azure Storage. I have refer this for same. But, they have not give information for how to use SAS with that. I have account name, and sas url for access and upload file there. But I don't know how to use that for uploading file. If I use above mention library it shows me invalid storage connection string because I am not passing the key in it (Which is not required with sas). So I am confused how I can upload file. I have

Azure CDN rules engine to rewrite default document and remove .html extension

喜夏-厌秋 提交于 2019-12-17 23:15:01
问题 I would like to use azure blob and CDN premium features but the documentation is very sparse . This is something totally doable on Amazon S3 / CloudFront. For clarity I want *.azureedge.net/sample/index.html to equal *.azureedge.net/sample/ and *.azureedge.net/sample/test.html to equal to *.azureedge.net/sample/test This is totally not clear and takes "up to 4 hours" to preview changes, so... After some investigation, Azure has a wrapper for Verizon Edgecast CDN, and this page looks identical

How to query Cloud Blobs on Windows Azure Storage

雨燕双飞 提交于 2019-12-17 19:06:49
问题 I am using Microsoft.WindowsAzure.StorageClient to manipulate blobs on Azure storage. I have come to the point where the user needs to list the uploaded files and modify/delete them. Since there are many files in one container, what is the best way to query azure storage services to return only the desired files. Also, I would like to be able to return only specific number of blobs so I can implement paging. There is a method called ListBlobs in the CloudBlobContainer, but it seems like it's

How to import Azure BlobService in python?

馋奶兔 提交于 2019-12-17 16:33:57
问题 We are able to import azure.storage, but not access the BlobService attribute The documentation says to use the following import statement: from azure.storage import BlobService But that get's the following error: ImportError: cannot import name BlobService We tried the following: import azure.storage ... foo = azure.storage.BlobService(...) But that received the following error: AttributeError: ‘module’ object has no attribute ‘BlobService’ We also tried all of the above with "azure.storage

How to create a sub container in azure storage location

China☆狼群 提交于 2019-12-17 10:23:25
问题 How to create a sub container in the azure storage location. Please let us know 回答1: Windows Azure doesn't provide the concept of heirarchical containers, but it does provide a mechanism to traverse heirarchy by convention and API. All containers are stored at the same level. You can gain simliar functionality by using naming conventions for your blob names. For instance, you may create a container named "content" and create blobs with the following names in that container: content/blue

Azure Data Factory mapping 2 columns in one column

China☆狼群 提交于 2019-12-17 06:55:49
问题 Can somebody help me solving the error am getting in concatenating the two columns i.e first name and last name from my text file and merging the two columns into one name column in my Azure SQL database as a sink in Azure Data Factory and another question is that I want to choose the first letter of the column gender that is M or F for male and female respectively from the source text file and changing it to one letter M or F in my gender column in the Azure data factory pipeline enter image

How can I delete a leased blob in Microsoft Azure storage

余生颓废 提交于 2019-12-17 02:37:04
问题 I created a virtual machine in Azure and then deleted it. However, the associated storage account still exists. I can't delete the storage account because it contains a container with a blob in it that has an indefinite lease. Nothing else is using this storage account. How can I delete this blob? 回答1: You need to delete the disk objects that are associated with the abandoned vhd's. You can do this easily in either the classic or new portal. Once you dispose of these (along with associated