azure-storage-blobs

Azure CORS Configuration

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-25 07:59:36
问题 I am using the azure.jquery.fineuplaoder-4.4.0 source and am getting these errors when I try to upload: OPTIONS http://gfbc.blob.core.windows.net/beta 403 (CORS not enabled or no matching rule found for this request.) XMLHttpRequest cannot load http://gfbc.blob.core.windows.net/beta. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://dev.gfbclife.org' is therefore not allowed access. I am using the default html template that is provided and calling

CloudBlob.DownloadText method inserts additional character?

核能气质少年 提交于 2019-12-25 04:58:09
问题 The following unit test fails: [TestMethod] public void Add_file_to_blob_and_retrieve_it() { var blobName = Guid.NewGuid().ToString(); var testFileContents = File.ReadAllText(TestFileSpec); Trace.WriteLine(string.Format("Opening blob container {0}", UnitTestBlobAgentName)); CloudStorageAccount.SetConfigurationSettingPublisher( (configName, configSetter) => configSetter(ConfigurationManager.AppSettings[configName])); var cloudStorage = CloudStorageAccount.FromConfigurationSetting(

Azure Connection String - Object Reference not set to an Instance of an Object

≯℡__Kan透↙ 提交于 2019-12-25 03:34:21
问题 I'm trying to download azure blobs in a Windows Console Application. When I build and debug the application my azure connection string is throwing an exception. This string works fine in my other asp.net app. The offending line is: CloudStorageAccount storageAccount = CloudStorageAccount.Parse(ConfigurationManager.ConnectionStrings["DefaultEndpointsProtocol=https;AccountName=xxxxx;AccountKey=xxxxx==;BlobEndpoint=https://xxxxx.blob.core.windows.net/;TableEndpoint=https://xxxxx.table.core

Loading ORC Data into SQL DW using PolyBase

时间秒杀一切 提交于 2019-12-25 02:57:31
问题 I am trying to load ORC file format via PolyBase but I am facing below problems. Problem:1 I have a CSV file which below code converts the csv file to ORC format but its selecting data from permanent table. If I remove "as select * from dbo.test" then create external table is not working. Permanent table contains 0 record. create external table test_orc with ( location='/TEST/', DATA_SOURCE=SIMPLE, FILE_FORMAT=TEST_ORC ) as select * from dbo.test ---Permanent Table Problem:2 If I select the

How to read the file content and parse the CSV file from BLOB in Azure?

99封情书 提交于 2019-12-25 00:56:54
问题 I have stored the csv file in blob container and try to read the content from logic app in azure. But i am facing issue to get the contect and iterate the same. Please help with flow. 回答1: You could combine the logic app with Azure Function to implement it. Blob connector to get the file . Pass CSV content to function and return JSON Iterate the row values. And about the Azure Function you could refer to this blog, in this example it has a complete Logic flow to convert csv into Json. Hope

403 Error when testing azure Blob Storage upload

♀尐吖头ヾ 提交于 2019-12-24 21:38:34
问题 I read and implemented the following article for chunking files between javascript client and azure blob storage: http://gauravmantri.com/2013/02/16/uploading-large-files-in-windows-azure-blob-storage-using-shared-access-signature-html-and-javascript. I seem to be able to generate the Shared Access Signature and create the permissions, but when I try to "PUT" the chunks up to azure with the following SAS URL, I am receiving the error: "403 (Server failed to authenticate the request. Make sure

System.InvalidCastException in Renaming Azure Container

笑着哭i 提交于 2019-12-24 20:17:17
问题 I am trying to rename a container in azure blob storage. I was able to successfully rename the container. But I noticed in some few cases that during some process. I encountered some error. Here is the error message. System.InvalidCastException: 'Unable to cast object of type 'Microsoft.WindowsAzure.Storage.Blob.CloudBlobDirectory' to type 'Microsoft.WindowsAzure.Storage.Blob.CloudBlockBlob'.' Below is my code. string ContainerName = "old-container-name"; string NewContainerName = "new

Changing Metadata[“Filename”] of blob and Container when copying and deleting container

两盒软妹~` 提交于 2019-12-24 20:07:15
问题 I am trying to change the container name and specific files inside of it when a certain condition was met. The 1st code below works fine. It can change the container name and blob.name correctly. The issue is the 2nd code below. Below is my code. string ContainerName = "old-container-name"; string NewContainerName = "new-container-name"; var storageAccount = CloudStorageAccount.Parse(CloudConfigurationManager.GetSetting("StorageConnectionString")); var blobClient = storageAccount

How to copy a VSTS artifact to a Azure Storage account container folder?

ぐ巨炮叔叔 提交于 2019-12-24 20:00:41
问题 I have a VSTS release pipeline in which I need to copy the build artifact to a storage account blob container. This is pretty easy with the Azure File Copy task, but the difficulty seems in the need to specify a folder in the container to copy the file to. I tried extending the container name, but that (obviously) doesn't work. Rewriting the destination in the "additional arguments" section neither. Looking at the source of the task I cannot find anything in that direction, so I'm wondering

azure createBlockBlobFromLocalFile shows no such file or directory

旧城冷巷雨未停 提交于 2019-12-24 18:40:37
问题 I am trying to uploading file using azure-storage function createBlockBlobFromLocalFile() . But when i upload the file i am getting error like { Error: ENOENT: no such file or directory, stat 'D:\path\task1.txt' errno: -4058, code: 'ENOENT', syscall: 'stat', path: 'D:\path\task1.txt' } But my file is inside the same path that i am using to run the file. So this means the uploading file and code both in same folder. Here is the code which i am trying to upload var azureStorage = require('azure