azure-storage-blobs

Is it possible to the content disposition of an existing Azure blob?

ぐ巨炮叔叔 提交于 2019-12-11 03:48:09
问题 Based on stimms answer here: Azure Storage API ContentDisposition and the information found here: Friendly filename when public download Azure blob I have been able to set the content disposition when uploading new files. But I also would like to be to able to set the content disposition of existing files. blob.Properties.ContentDisposition = string.Format("attachment;filename=\"{0}\"", friendlyName); works fine when set before uploading a file, but has no effect if I try it on an existing

Script task to upload zip file to blob storage with azure datafactory SSIS

与世无争的帅哥 提交于 2019-12-11 03:23:47
问题 I have a azure data factory project. I need to query some data from my Azure SQL Database then load into an xml, zip it and upload to blob sotrage. I don't want to write anything to the file system (because I think the Azure Database doesn't have any lcoal storage) so I am using the Memorystream. This Script Task is working on my local SSIS database but not on the Azure Datafactory: using System; using System.Data; using Microsoft.SqlServer.Dts.Runtime; using System.Windows.Forms; using

Downloading contents of a Azure blob as a text string taking too long time

柔情痞子 提交于 2019-12-11 03:01:13
问题 I am developing an application that Upload a .CSV file on Azure blob storage from my local machine using simple HTTP web page (REST methods) Once, the .CSV file is uploaded, I fetch the stream in order to update my database The .CSV file is around 30 MB, it takes 2 minutes to upload to blob, but takes 30 minutes to read the stream . can you please provide inputs to improve the speed? Here is the code snippet being used to read stream from the file: https://azure.microsoft.com/en-in

Microsoft Azure and SAS for PHP

怎甘沉沦 提交于 2019-12-11 02:45:29
问题 i trying to create SAS link to blob resource using PHP. Unfortunately currently in azure SDK there is no method for creating SAS signature. I wrote a code for generating SAS but when i'm trying to get a resource by the link generated by this method i'm getting this message: Signature fields not well formed. public function getSharedAccessSignatureURL($container, $blob) { $signedStart = date('c', strtotime('-1 day')); $signedExpiry = date('c', strtotime('+1 day')); $signedResource = 'b';

Remove Azure blob storage contents that are untouch for period of time

99封情书 提交于 2019-12-11 02:25:11
问题 The application I developed basically allows users to upload contents and get stored in Azure Blob Storage. Since the nature of the contents are for quick sharing between users, many of the contents are quickly become untouched after a period of time. But for some contents can be used over and over again. In order to stop the unprecedented growth of the size of blob storage, I am planning to write tool that basically find any blobs that aren't used for period of time and delete them off the

Azure Block Blob PUT fails when using HTTPS

≡放荡痞女 提交于 2019-12-11 02:19:44
问题 I have written a Cygwin app that uploads (using the REST API PUT operation) Block Blobs to my Azure storage account, and it works well for different size blobs when using HTTP. However, use of SSL (i.e. PUT using HTTPS) fails for Blobs greater than 5.5MB. Blobs less than 5.5MB upload correctly. Anything greater and I find that the TCP session (as seen by Wireshark) reports a dwindling window size that goes to 0 once the aforementioned number of bytes are transferred. The failure is repeatable

EIPHTTPProtocolExceptionPeer exception using PutBlock with array of bytes all set to zero

♀尐吖头ヾ 提交于 2019-12-11 02:16:16
问题 Using Delphi XE2 Update 3 I'm having a problem uploading a block of zero bytes to Azure. When I say zero bytes, I mean an array of bytes with each element set to zero (it's not zero length). For example: var ConInfo: TAzureConnectionInfo; RespInfo: TCloudResponseInfo; BlobService: TAzureBlobService; Content: TBytes; MD5: String; Hasher: TIdHashMessageDigest5; begin ConInfo:=TAzureConnectionInfo.Create(self); ConInfo.AccountName:='YOUR ACCOUNT NAME'; ConInfo.AccountKey:='YOUR ACCOUNT KEY';

Singleton time triggered Azure Function across multiple regions

爷,独闯天下 提交于 2019-12-11 02:09:39
问题 I have a time triggered Azure Function deployed in multiple regions and I want to have singleton behavior across them. For example, if the regions are west US and central Europe, I want only one of them to run each time. Can this be achieved? As the documentation says, TimeTrigger uses the Singleton attribute implicitly to ensure only one instance of a function is run per host, so that aspect is covered. In order to have the same behavior in all regions, I tried using Singleton with the

Using Azure Blob Storage with java MVC Azure Web Site

非 Y 不嫁゛ 提交于 2019-12-11 02:04:11
问题 I have created a java MVC web app and deployed on the Azure cloud. Now I am trying to capture my web application logs into the text/CSV file and store that text/CSV file in Azure Blob Storage. Can anyone tell me how to do this? How to access Azure Blob Storage. I went through this article but was not of much help. Please anyone help. Note- In on premises application we can do the same using properties file & log4j jar. I want to do the same in Azure web App. 回答1: Based on my understanding, I

Xamarin forms - Open file as stream

青春壹個敷衍的年華 提交于 2019-12-11 00:15:37
问题 This might be a very simple question but I'm always confused when we're talking about streams. I'm trying to open a file in my Xamarin Forms project in the Android part of it. I have a Java.IO.File which I would like to convert into a stream to be able to send it to an Azure Blob Storage with that simple function : public async Task<string> UploadFileAsync(Stream stream) { await this.container.CreateIfNotExistsAsync(); var name = "Photo_" + Guid.NewGuid().ToString(); var fileBlob = container