azure-storage-blobs

Upload file to Azure Blob Storage directly from browser?

非 Y 不嫁゛ 提交于 2019-12-28 11:52:33
问题 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. 回答1: 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

Verify duration of video which has been uploaded into azure blob

杀马特。学长 韩版系。学妹 提交于 2019-12-25 16:55:54
问题 I'm building an application where users can upload a short portrait video about themselves for promotion within the community. The keyword being short. I would like to prevent users from being able to upload 1 hour epics. I have tried figuring out a way to verify this on the client side yet with all the available video formats out there I resolved to doing it server side. This is where I hit the next wall. I upload the users videos in chunks (due to be expected large files) via a reference

Saving blob (might be data!) returned by AJAX call to Azure Blob Storage creates corrupt image

时光毁灭记忆、已成空白 提交于 2019-12-25 16:54:12
问题 If I post a PDF to my vendors API, they return me a .png file as a blob (see update 2 as I am now unsure if they are returning blob data). I would like to push this into Azure Blob Storage. Using my code listed below, it pushes something in, but the file is corrupted. Example: downloading the .png from Azure Blob Storage and trying to open it with Paint gives the following error: This is not a valid bitmap file, or its format is not currently supported. I have verified that the image is sent

Azure SAS token for copy blob operation issue

流过昼夜 提交于 2019-12-25 16:51:47
问题 I am trying to copy blob form one storage account to another, as per the post here i am able to generate shared access signature (SAS) for x-ms-copy-source . Now my problem is i am unable to pass through the authentication of copy blob operation it says " AuthenticationFailedServer failed to authenticate the request ". I am using the below code to generate SAS token as well as authentication signature for copy blob. Can someone help me in fixing the issue $date = gmdate('D, d M Y H:i:s \G\M\T

How to support other languages in Azure blob storage?

淺唱寂寞╮ 提交于 2019-12-25 13:22:07
问题 I am developing a web application by using ASP.NET/ C# and AZURE. I am using Azure Blob to store files. I face a problem to store a file with other languages(Only English is OK). Example: I save this as a .txt file :"한나라당 전당대회 돈 봉투 사건을 수사하고 있는 검찰이 박희태 국회의장 비서관 사무실을 전격 압수수색했습니다. 조정만, 이봉건 두 수석 비서관실과 여비서 함모 씨가 근무하는 부속실입니다. 서울중앙지검 공안1부는 오늘(19일) 아침 8시 20분 서울 여의도" but when I retrive this, its shows: "한나ë¼ë‹¹ ì „ë‹¹ëŒ€íšŒ ëˆ ë´‰íˆ¬ ì‚¬ê±´ì„ ìˆ˜ì‚¬í•˜ê³ ìžˆëŠ” ê²€ì°°ì´ ë°•í¬íƒœ 국회ì˜ìž¥ 비ì

Unable to create image using Azure VM

自古美人都是妖i 提交于 2019-12-25 09:20:17
问题 I need to generalize and capture a linux virtual machine. I deployed the VM using ARM template. In ARM template, I used the following to get VHD stored in storage account "storageProfile": { "imageReference": { "publisher": "[variables('imagePublisher')]", "offer": "[variables('imageOffer')]", "sku": "[variables('imageSku')]", "version": "latest" }, "osDisk": { "name": "[parameters('virtualMachineName')]", "createOption": "fromImage", "vhd": { "uri": "[concat(concat(reference(resourceId

Upload blob in Azure using BlobOutputStream

。_饼干妹妹 提交于 2019-12-25 09:17:58
问题 I'm trying to upload a blob directly from a stream, since I don't know the length of the stream I decided to try with this answer. This doesn't work, even though it reads from the stream and doesn't throw any exceptions the content isn't uploaded to my container. I have no problem uploading from files, it only occurs when uploading from a stream. This is my code, I added a few outs to check whether it was reading something or not but that wasn't the problem: try { CloudBlockBlob blob =

Programmatically delete Azure blob storage objects in bulks

為{幸葍}努か 提交于 2019-12-25 08:49:29
问题 Is it possible to programmatically delete Azure blob objects in bulks? Deleting objects one by one sometimes takes us several days. We put a lot of new files on the Azure Blob Storage and all the outdated files we want deleted to avoid unwanted charges. I've googled over the web/MSDN/Stack Overflow and found only one topic on MSDN from 2014 that was referring to create feature request on the Microsoft site. 回答1: Is it possible to programmatically delete Azure blob objects in bulks? No. You

how to have Azure blob storage files be reachable via custom domain redirect or rewrite without resulting in browser security alerts?

不问归期 提交于 2019-12-25 08:44:51
问题 This is a follow up to my question from yesterday Azure Storage blob using custom domain is not resolving while subdomain worked - how to set up host records? The objective is to have blob storage files be reachable and ranked on google via our custom domain for example: http://contoso.com/docs/product1-specs.pdf. This is a new website and so there's no concern with needed redirects from old links. so in an html file on "contoso.com/product1" you'd have an internal link for example <a href="

Copy page blob from one storage account to Another storage account using .Net API startCopy

送分小仙女□ 提交于 2019-12-25 08:00:03
问题 I am trying to copy a page blob in one storage account to another storage account using .net API startCopy. Both storage accounts are standard type and blob exists in source location. I am getting "cannotverifysourcepath" error with below exception details. I was hoping that startcopy API works to copy from account to another. Can anyone please help me to figure out what's the issue here? Exception- Microsoft.WindowsAzure.Storage.StorageException: The remote server returned an error: (404)