azure-storage-blobs

Is there a limit to the number of files that can be stored in an Azure blob storage?

蓝咒 提交于 2019-12-08 19:53:34
问题 I have found documentation describing the limits for blob storage, including the maximum file size and blob size, but I can't find reference to whether there is a limit to the number of files that can be stored - is there a limit, or perhaps more importantly, a performance penalty when there are several hundred thousand (or million) small files stored in blob storage? 回答1: There is no limit to the number of blobs in a storage account, aside from the 500TB limit per storage account. You won't

Create imagebrush, bitmap and writeablebitmap from an url

你说的曾经没有我的故事 提交于 2019-12-08 19:26:23
问题 Hey I have a windows phone 8.1 app using the silverlight API. I am downloading this image from my blob storage. The image is coming from a link like this: https://[service].blob.core.windows.net/[imagename].png and the image can be showned and downloaded in multiple browsers, just using the URI. I now want to use this as a imagebrush based on the imageuri from the blobstorage: // If we have a returned SAS. BitmapImage myOnlineImage = new BitmapImage(); myOnlineImage.UriSource = new Uri

Getting blob count in an Azure Storage container

拈花ヽ惹草 提交于 2019-12-08 14:40:26
问题 What is the most efficient way to get the count on the number of blobs in an Azure Storage container? Right now I can't think of any way other than the code below: CloudBlobContainer container = GetContainer("mycontainer"); var count = container.ListBlobs().Count(); 回答1: The API doesn't contain a container count method or property, so you'd need to do something like what you posted. However, you'll need to deal with NextMarker if you exceed 5,000 items returned (or if you specify max # to

Swift 3 Azure Blob Storage Data (Image, Video) upload with SAS

情到浓时终转凉″ 提交于 2019-12-08 14:00:16
问题 I'm searching for an useful Swift 3 Azure Blob Storage example which I could use to upload some data(image, video). For now, I can insert records into my Mobile Service database and there I generate a SAS and I get it back to my iOS application. Now I need to know how to upload to Azure Blob Storage with help of that SAS. I successfully implemented the same for Android and it works, but somehow I have troubles to find any useful information for "SWIFT" and how to use the "SAS"! Any code

AzureMobileService: Insert data in to table gives exception

て烟熏妆下的殇ゞ 提交于 2019-12-08 13:31:08
问题 I am new to implement Azure Mobile Service. I have refer the demo of ToDoItem given by Azure. In same manner i have make class User for my own app. Then I am inserting the data in to the MobileServiceTable but it gives me error like below: {"message":"The operation failed with the following error: 'A null store-generated value was returned for a non-nullable member 'CreatedAt' of type 'CrazyLabApp.Models.User'.'."} I have not created any field like this as it is not created in ToDoItem demo

Azure blob storage to JSON in azure function using SDK

懵懂的女人 提交于 2019-12-08 13:03:24
问题 I am trying to create a timer trigger azure function that takes data from blob, aggregates it, and puts the aggregates in a cosmosDB. I previously tried using the bindings in azure functions to use blob as input, which I was informed was incorrect (see this thread: Azure functions python no value for named parameter). I am now using the SDK and am running into the following problem: import sys, os.path sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), 'myenv/Lib/site

How to get list of file from Azure blob using Spark/Scala?

可紊 提交于 2019-12-08 12:31:00
问题 How to get list of file from Azure blob storage in Spark and Scala. I am not getting any idea to approach this. 回答1: I don't know the Spark you used is either on Azure or on local. So they are two cases, but similar. For Spark running on local, there is an offical blog which introduces how to access Azure Blob Storage from Spark. The key is that you need to configure Azure Storage account as HDFS-compatible storage in core-site.xml file and add two jars hadoop-azure & azure-storage to your

How do I define a read-only access connection string for a container in Azure?

[亡魂溺海] 提交于 2019-12-08 11:25:47
问题 In an Azure subscription I have a Storage account with multiple defined containers. Currently all of my code uses the primary access key for the connection string to read and write data to the containers. All Containers are Private. Can I generate a read-only connection string for the Storage account or does it have to be defined for each container? 回答1: At this moment, it's not possible to create a read-only connection string for the storage account. From the platform side, your only option

Uploading a photo stream from camera into azure blob in WP7

≯℡__Kan透↙ 提交于 2019-12-08 10:10:27
问题 I have the following simple application page that uses the phone camera to upload the taken photo to azure blob: public partial class AddReport : PhoneApplicationPage { // blobs stuff string storageAccount = "MYACCOUNT"; string storageKey = "MYKEY"; string blobServiceUri = "http://MYACCOUNT.blob.core.windows.net"; CloudBlobClient blobClient; private Report newReport; public AddReport() { InitializeComponent(); } protected override void OnNavigatedTo(System.Windows.Navigation

Azure Blob Not Storing PDFs

时光怂恿深爱的人放手 提交于 2019-12-08 09:25:45
问题 Ok so i have the following code-- it works perfectly for storing jpgs, but does not store pdfs. Any idea why? public bool TryStoreImage(string uri, string fileName) { try { WebClient wc = new WebClient(); var blob = new BlobStorage().GetCloudBlobContainer(); var store = blob.GetBlobReference(fileName); store.UploadByteArray(wc.DownloadData(uri)); return true; } catch (Exception exc) { return false; } } ` Again, every pdf i try to access gives me "pdf does not exist," even though i can see the