azure-storage-blobs

The fastest method to move tens of thousands of small files to Azure Storage container

隐身守侯 提交于 2019-12-13 07:11:00
问题 What's the fastest way to move tens of thousands of small image files from my local machine to a container within Azure Cloud Storage? I am trying the highly-recommended CloudBerry explorer for Azure, and the estimated-time of completion is roughly 4 hours for me right now (around ~30K files in total, 5KB average file size). This is unaccetable for me - I want to drastically cut down that time. Can you suggest any other options? I think non-GUI ones will be faster. I'll provide an example

Example of writing byte array of different size sequentially to a blob in Windows Azure

天大地大妈咪最大 提交于 2019-12-13 07:08:00
问题 I've been trying to find a good example on this but I must be searching for the wrong things. Here's what I wish to do: One process writes byte arrays of different size to a blob sequentially (no need for any concurrency checks or anything like that). Each byte array is committed to the blob at each write Other processes reads from the blob from starting at different positions but reads sequentially after that Basically what I'm trying to describe is a transaction log. Any links to good

How to enable seeking in Azure Blob stream

做~自己de王妃 提交于 2019-12-13 06:26:15
问题 I have a BlobStream that is created from the method OpenWriter. var blob = CloudContainer.GetBlobReference(name)); if (blob == null) { return null; } return blob.OpenWrite(); Using this stream i would like to seek or set the position, but each time i do this i get a NotSupportedException. After doing some research i found that the canSeek is set to false, which causes this problem. But, the CanSeek is false only if the length is unknown. But the length is known when i run the debugger. Why is

Azure blob URL comes back incorrectly for text file load

三世轮回 提交于 2019-12-13 06:15:50
问题 Herein lies my problem, the working path to the file I am trying to load into a string variable, when copied from Azure Explorer works fine. Working: https://container.blob.core.windows.net/files/emailtemplates/EmailMaster.html When I try to do it via code: [TestMethod] public void TestMethod3() { string templateHtml; var blob = AzureStorageMethods.GetAzureBlob(AzureFileFolder + "EmailMaster.html"); using (var memoryStream = new MemoryStream()) { blob.DownloadToStream(memoryStream);

Files uploaded to Azure Storage are corrupted

筅森魡賤 提交于 2019-12-13 05:59:43
问题 I am trying to allow users to upload images to my web site via an HTML5 page and am trying to use Azure Blob storage. I have created the page and the C# code on the backend but it seems that the images are getting corrupted during the upload process. I am able to take the images and pass it to Azure and it creates the blob and fills it of the right size but when the images is downloaded and then open I just get a bunch of garbage (random letters and symbols) instead of the image. Can anyone

Seeking version of blob storage

大兔子大兔子 提交于 2019-12-13 05:49:45
问题 Team, I am a beginner in Azure and have some queries regarding the blob storage logs I am referring to this link http://blogs.msdn.com/b/windowsazurestorage/archive/2014/08/05/microsoft-azure-storage-service-version-removal.aspx Now in my test environment I have enabled logging and I have got access to the log folders via Azure Management Studio. When I look in the folders there are several mini folders I guess differentiated hr by hr. In that there are small txt files which get generated

Can't access the blob file in sub directory

感情迁移 提交于 2019-12-13 05:47:21
问题 There is no sub container(directory) in Azure blob storage. I simply use slashes in file name for having virtual sub directory. here is example. http://apolyonstorage.blob.core.windows.net/banners/Local/Homepage/index.html Container Name: banners File Name : Local/Homepage/index.html I upload the file and access it on Azure portal but simply accessing the link fail by telling resource is not found but it is actually exist. Why it fails when i access it on browser by link ? 回答1: What's the ACL

Set metadata in REST request to put blob in AZURE

大憨熊 提交于 2019-12-13 04:05:56
问题 i am able to upload file to azure blob using REST api provided by Azure. i want to set metadata at the time i am doing request for put blob, when i am setting it into header as shown here i am unble to upload file and getting following exception org.apache.http.client.ClientProtocolException . from the last line of the code below HttpPut req = new HttpPut(uri); req.setHeader("x-ms-blob-type", blobType); req.setHeader("x-ms-date", date); req.setHeader("x-ms-version", storageServiceVersion);

Trouble Upgrading from Azure Storage 1.7 to 2.0

佐手、 提交于 2019-12-13 04:01:46
问题 I am currently involved in upgrading from Azure 1.7 to 2.2 and am encountering breaking changes with Storage. All the storage calls in the libraries are covered by Unit Tests and I've ironed out most of the changes. I am completely stuck on one of our core methods which gets a list of subdirectories in a directory. I know they are not actual directories, but parts of blob names, but the functionality existed before 2.0 and we make heavy use of it across nearly 30 different services. The

CreateIfNotExists throwing ArgumentNullExecption

家住魔仙堡 提交于 2019-12-13 03:56:12
问题 var blobClient = storageAccount.CreateCloudBlobClient(); cont_ref = blobClient.GetContainerReference("foo"); cont_ref.CreateIfNotExists(); The code was working perfectly until recentliy. Now it's throwing an ArgumentNullException . Q The examples I've seen, demonstrate it like that. What's wrong? Update The stacktrace contained in the exception reads at System.Enum.TryParseEnum(Type enumType, String value, Boolean ignoreCase, EnumResult& parseResult) 来源: https://stackoverflow.com/questions