azure-storage

Does the Azure table storage API cache results?

人盡茶涼 提交于 2020-01-04 02:47:09
问题 When I run the same query multiple times against the Azure table storage, is it using caching and speeding up the subsequent queries? In other words, is it caching the HTTP response? 回答1: Azure storage definitly use caching: http://www.scribd.com/doc/73458371/Windows-Azure-Storage-at-23rd-ACM-Symposium-on-Operating-Systems-Principles-SOSP-Paper Note that writes are actually kept in memory until correctly replicated and I think it's safe to assume that any reads are cached too so that multiple

Downloading encrypted file from Window Azure storage

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-04 02:39:06
问题 I have created a MVC WebRole Window Azure application where i upload encrypted files to Azure blob storage using SymmetricAlgorithm (Rijndael) like this Controler>Action is [HttpPost] public ActionResult UploadImage_post(HttpPostedFileBase fileBase) { if (fileBase.ContentLength > 0) { // Retrieve a reference to a container Microsoft.WindowsAzure.StorageClient.CloudBlobContainer blobContainer = _myBlobStorageService.GetCloudBlobContainer(); Microsoft.WindowsAzure.StorageClient.CloudBlob blob =

Azure, MVC web app architecture - how to split data between SQL Azure and Azure Table Storage?

心不动则不痛 提交于 2020-01-04 02:11:13
问题 I am in the planning phase of the typical social network type of a web application. It will have profiles, messages, instant chat, albums, groups, virtual presents, etc... What are the deciding factors that determine what data should be stored in the SQL Azure and what data should be stored in the Table Storage? Before the Azure all relational data would be stored in the SQL server and then memory caching with data objects and pages output caching would be used for performance and to ease the

Azure Connection Error with Emulator

五迷三道 提交于 2020-01-03 15:36:13
问题 I have the Azure Storage (v3.4) and Compute Emulator (v2.5) installed, and I can check my deployments in the Compute Emulator ok , but whenever I try to visualize the contents of my tables or blobs, I get the following error from Visual Studio: Could not load file or assembly Microsoft.Azure.Storage.Emulator.Controller, Version=4.0.0.0,Culture=neutral,... or one of its dependencies. The system cannot find the file specified. Any idea what could be going wrong? 回答1: I believe, but may be wrong

Azure blob's block list is empty, but blob is not empty! How can this be?

我与影子孤独终老i 提交于 2020-01-03 09:45:07
问题 This issue in a nutshell: A block blob can be created with a single PUT request. This will create a blob with committed content but the blob will not have any committed blocks ! This means that you cannot assume that the concatenation of committed blocks is the same as the committed content. When working with block blobs you'll have to pay extra attention to blobs with empty block lists, because such blobs may or may not be empty! The original question: One of our storage blobs in an Azure

Does not found Listblob() in CloudBlobContainer

房东的猫 提交于 2020-01-03 08:37:34
问题 In my app i want all the blob of my container but in my code (as below) there is not Listblob() method in CloudBlobContainer variable container. Am i missing something? var credentials = new StorageCredentials("xxx", "a37bijfRGGdgaVU+ITEIi0Cp1VrbzMM7Bc9PbMOw2FPAz9twgR+lbTzqGhBfHeJe7UfEp4CXtLxqY5Ek0/5zdg=="); var client = new CloudBlobClient(new Uri("https://xxx.blob.core.windows.net/"), credentials); var container = client.GetContainerReference("publicimage"); //this container variable has

Azure Service Bus can't receive JSON body

烈酒焚心 提交于 2020-01-03 05:05:13
问题 When debugging this code, the application stops. No error message or exception are shown. Project X: client.OnMessage((message) => { using (var stream = message.GetBody<Stream>()) using (var streamReader = new StreamReader(stream, Encoding.UTF8)) { var body = streamReader.ReadToEnd(); } } Below I'm POSTing JSON objects through a REST API. Project Y: public void CreateMessage<T>(T messageToSend, string queueAddress, WebClient webclient) { var apiVersion = "&api-version=2014-01"; var

Azure storage CORS returns origin wildcard and fails in browser

人走茶凉 提交于 2020-01-03 03:03:29
问题 When enabling CORS on Azure blob storage, almost everything can be set but the "...Allow-Credentials" header, which is always true. So when using a wildcard for the origin-header, the pre-flight request works fine and converts the wildcard into the actual origin. But the subsequent GET request does not convert the wildcard and returns the following combination: Access-Control-Allow-Origin: * Access-Control-Allow-Credentials: true which is illegal in Chrome (and probably other browsers, too).

SendGrid: How to attach a file from Azure blob storage?

可紊 提交于 2020-01-02 17:56:46
问题 I have blobs in Windows Azure blob storage that I'd like to attach to emails sent with SendGrid. I'd like to specify the file name for the attachment (real file names are just mumbo jumbo) which afaik forces me to add the attachment as a stream. My code looks like this: var msg = SendGrid.GetInstance(); // Code for adding sender, recipient etc... var storageAccount = CloudStorageAccount.Parse(ConfigurationManager.ConnectionStrings["storage"].ConnectionString); var blobClient = storageAccount

How to track individual objects, that are out of order, and then Joining() the consecutive ones?

*爱你&永不变心* 提交于 2020-01-02 12:01:34
问题 I'll start by saying is going to be a little tougher than blindly joining byte[] together. My big picture goal is to optimize an application that currently uploads many 512byte pages to a web server (Azure Page Blob), and reduce that to a single large upload of 4Megs or less. See the links at the bottom of this question for more background as to why. The short answer to why: This optimization will increase speed (fewer IOs) and save money over the long term by using Azure sparse files Now for