azure-storage-blobs

Selectively deleting images uploaded to Azure blob (Django/Python project)

岁酱吖の 提交于 2021-01-28 00:57:30
问题 In a Django (Python) project, I'm using Azure blobs to store photos uploaded by users. The code simply goes something like this: from azure.storage.blob import BlobService blob_service = BlobService(account_name=accountName, account_key=accountKey) blob_service.put_blob( 'pictures', name, # including folder content_str, # image as stream x_ms_blob_type='BlockBlob', x_ms_blob_content_type=content_type, x_ms_blob_cache_control ='public, max-age=3600, s-maxage=86400' ) My question is: what's the

List of blobs in Azure Storage from SQL Server

扶醉桌前 提交于 2021-01-27 20:04:49
问题 We're currently using Azure storage to back up our SQL Server databases, and I've been tasked with recreating a list of the blobs in the database. Currently we use BACKUP TO URL with the credentials stored in sys.credentials . Is it possible to get a list of containers in a storage account and/or get a list of blobs in a container straight from SQL Server with the saved credentials from the database? 回答1: Is it possible to get a list of containers in a storage account and/or get a list of

Storing over 500 k + images as varbinaryblob on Azure BLOB or CosmosDB?

柔情痞子 提交于 2021-01-27 20:04:18
问题 I work on UWP app that downloads images from Azure . Although the size of image in < 2 MB , their number is over 500 k. Currently the images are stored in Azure SQL as varbinary .This is consuming 250 GB on the database instance.We need to move it to non relational data storage that has less latency , consumes less space in storage. Which option here (Azure BLOB or Cosmos DB) fits better.? We download the images from REST API connecting to Azure SQL right now using a unique key and want to

Azure IoTHub DeviceMessage structure and route query

本秂侑毒 提交于 2021-01-27 18:20:54
问题 I used the python example from https://docs.microsoft.com/de-de/azure/iot-hub/quickstart-send-telemetry-python to send telemetry data to the IoTHub. Now I try to forward only the messages from the device "test-device" into a blob storage via a custom endpoint and a route. With the query string "true" all messages from all devices are pushed to the storage. However, I don't get the query to select only the messages from the deviceId "test-device". I search in the documentation but didn't find

File not sending from Angular to Nodejs

a 夏天 提交于 2021-01-27 14:53:48
问题 I'm using an ngx-awesome-uploader to add my images to angular to send to backend. I'm trying to send the file to my nodejs backend, but it keeps returning {} on backend where the file should be. Never worked with files before, but I'm gonna take an educated guess and say that should have something in there. On the frontend it looks like the file is there to be sent because console.log(fileUpload.file); output BACKEND OUTPUT File Upload Section { file: {}, fileName: 'image.png' } But is empty

File not sending from Angular to Nodejs

廉价感情. 提交于 2021-01-27 14:33:44
问题 I'm using an ngx-awesome-uploader to add my images to angular to send to backend. I'm trying to send the file to my nodejs backend, but it keeps returning {} on backend where the file should be. Never worked with files before, but I'm gonna take an educated guess and say that should have something in there. On the frontend it looks like the file is there to be sent because console.log(fileUpload.file); output BACKEND OUTPUT File Upload Section { file: {}, fileName: 'image.png' } But is empty

Azure Java SDK - set block blob to cool storage tier on upload

雨燕双飞 提交于 2021-01-27 14:17:18
问题 Is there a way to set the storage tier to “cool” at the blob level when uploading a block blob to Azure Storage using the Java SDK? The closest thing I can find is setStandardBlobTier() on BlobProperties, which is a protected method, so it can't be accessed. 回答1: The class CloudBlockBlob now has two uploadStandardBlobTier() methods which can be used to set the blob tier on a block blob on a standard storage account. e.g. cloudBlockBlob.uploadStandardBlobTier(StandardBlobTier.COOL); 回答2: I

The type or namespace name 'Storage' does not exist in the namespace 'Microsoft.WindowsAzure'

折月煮酒 提交于 2021-01-27 12:53:28
问题 I updated to Visual Studio 2013 Update 2 RC and to Azure SDK 2.3. Now I get the following error: The type or namespace name 'Storage' does not exist in the namespace 'Microsoft.WindowsAzure' On all three of these: using Microsoft.WindowsAzure.Storage; using Microsoft.WindowsAzure.Storage.Auth; using Microsoft.WindowsAzure.Storage.Blob; If I remove these using namespaces then I get the error: The type or namespace name 'CloudBlobClient' could not be found (are you missing a using directive or

Azure CDN Premium Verizon Rules Engine V4 URL Rewrite for Storage Static Website sub directories

核能气质少年 提交于 2021-01-27 07:52:50
问题 I'm trying to host an Angular project with Azure Storage Static Website through Azure CDN Verizon Premium Let's say i have containers for each Angular builds named like v0.3.13.3 and in that container there are also multi language builds of angular project. What i'm trying to achieve is to serve the right index.html with correct routing for each version and language. You may find example routes below: my.domain.com/v0.3.13.3 should serve /v0.3.13.3/index.html my.domain.com/v0.3.13.3/dashboard

Create a table in Azure SQL Database from Blob Storage

落爺英雄遲暮 提交于 2021-01-27 04:54:54
问题 I need to take large tables out of our Azure Data Warehouse and move them over to stand alone Azure SQL Databases. I haven't been able to get the Data Factory to work quickly enough for my scenario. I can get my tables into Blob storage from my Data Warehouse via external tables. What I can not figure out is how to create an external table on an Azure SQL Database with an external data source to my Blob storage. This is the format file, external data source, and external table used to get my