azure-storage-blobs

Need help downloading image from Azure Blobs using NodeJS

ぃ、小莉子 提交于 2019-12-01 23:35:32
I got most of the code from the NodeJS Blob quickstart from azure, I am able to upload files including images successfully and I can see them in the azure storage dashboard just fine. But I can't seem to download them or get a URL to them and I need the url for my database so I can query it and use the url to retrieve the file. The download part of the code in the quickstart isnt so clear to me, it seems to be made for text as the upload is as well. If I go into my azure storage dashboard I can see the container and I can see the blob created with the image and I can click on the image and it

Out of Memory exception while uploading and resizing multiple images asynchronously

你。 提交于 2019-12-01 21:48:23
问题 Hi I am trying to upload some images async, I get Out of Memory Exception, I am disposing by using statement however I get following stack trace [OutOfMemoryException: Out of memory.] System.Drawing.Graphics.CheckErrorStatus(Int32 status) +1146420 System.Drawing.Graphics.DrawImage(Image image, Rectangle destRect, Int32 srcX, Int32 srcY, Int32 srcWidth, Int32 srcHeight, GraphicsUnit srcUnit, ImageAttributes imageAttrs, DrawImageAbort callback, IntPtr callbackData) +256 System.Drawing.Graphics

Out of Memory exception while uploading and resizing multiple images asynchronously

倾然丶 夕夏残阳落幕 提交于 2019-12-01 21:15:48
Hi I am trying to upload some images async, I get Out of Memory Exception, I am disposing by using statement however I get following stack trace [OutOfMemoryException: Out of memory.] System.Drawing.Graphics.CheckErrorStatus(Int32 status) +1146420 System.Drawing.Graphics.DrawImage(Image image, Rectangle destRect, Int32 srcX, Int32 srcY, Int32 srcWidth, Int32 srcHeight, GraphicsUnit srcUnit, ImageAttributes imageAttrs, DrawImageAbort callback, IntPtr callbackData) +256 System.Drawing.Graphics.DrawImage(Image image, Rectangle destRect, Int32 srcX, Int32 srcY, Int32 srcWidth, Int32 srcHeight,

uploading to azure storage from memorystream returning an empty file

痴心易碎 提交于 2019-12-01 20:51:05
I'm writing a System.Drawing.Bitmap to Azure storage using a memory stream. I have the correct credentials and everything azure side wires up correctly. I have uploaded an image into a blob successfully using an input stream so I think it must be a problem with how i am using the memorystream object. After looking about for a while, the general solution to my problem looked to be setting the memorystream position to 0, that hasn't worked for me however and an empty file is still being saved into azure. my code is: using (image) { System.IO.MemoryStream ms = new MemoryStream(); //create an

Howto upload/setup default.html page for Azure Blob Storage?

ぐ巨炮叔叔 提交于 2019-12-01 17:28:58
First, how to upload a file to blob root? It seems I have to upload file to a container (which is a folder IMO) Second, if I finally found a way to upload file to root, will default.html page (or other name) become the default page for the domain? Thanks. There is a container named: $root. Refer to 'Working with the Root Container' for further info AFAIK, blob storage cannot be used as a simple web server, so it cannot serve default.html. You will need a web role instance for this. Windows Azure Web, Worker, and VM roles demystified There's a special container name, $root , that you use for

How to retrieve azure blob storage file attributes such as create data and audit trail in c#

为君一笑 提交于 2019-12-01 17:08:26
问题 I am trying to create a solution that allows my customers to store their files in azure blob storage. When I do this: foreach(var blob in list.OfType<CloudBlockBlob>()) { blob.FetchAttributes(); var file = new FileViewModel() { Name = blob.Name, Modified= blob.Properties.LastModified, Size = blob.Properties.Length, Created= xxx } } Looks like there is no Create date property, just lastModified. Does it mean I have to put created date into Metadata Property myself? I am quite new to Azure blob

Howto upload/setup default.html page for Azure Blob Storage?

倾然丶 夕夏残阳落幕 提交于 2019-12-01 17:07:00
问题 First, how to upload a file to blob root? It seems I have to upload file to a container (which is a folder IMO) Second, if I finally found a way to upload file to root, will default.html page (or other name) become the default page for the domain? Thanks. 回答1: There is a container named: $root. Refer to 'Working with the Root Container' for further info AFAIK, blob storage cannot be used as a simple web server, so it cannot serve default.html. You will need a web role instance for this

Set expiry limit for blob

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-01 16:57:43
I'm using Azure-Storage for storing information like a cache mechanism. So, for given input I'm doing the job for first time and after that I'll save the result in the cache for further use. When I'll need to solve the problem with same given input, I'll get it directly the already ready solution from storage. This all is implemented. I'm trying to add a expiry limit for file in my cache. Each result will be stored for maximum 30 days. After that, they will be automatically deleted. The naive solution is to implement also an background worker that will run one time per day and will run over

Azure Static Website Hosting

心已入冬 提交于 2019-12-01 15:49:26
Is there any way to host static website (HTML + CSS + JS) in Azure? Like we do Amazon S3 Static Website hosting, they charge only for storage. UPDATE: 29-June-2018 It is now possible to host static websites in Azure Storage. You can read more about it here: https://docs.microsoft.com/en-gb/azure/storage/blobs/storage-blob-static-website As of today, no. Azure doesn't have an equivalent of that. You can however host static sites as Web Apps and for free as well if you're comfortable with the restrictions with free tier. It's not officially supported, but if you hosted your site in Azure Blob

Azure Storage Blob types (CloudBlobContainer, CloudBlobClient, etc.) and thread safety

回眸只為那壹抹淺笑 提交于 2019-12-01 15:25:29
问题 I am developing an azure application which needs at some point to upload(download) a large amount of small blobs to a single container (more than 1k blobs, less than 1 Mb each). In order to speed up this process I'd like to use multiple threads for uploading(downloading) blobs. This is routine I use for uploading single blob: CloudStorageAccount storageAccount = CloudStorageAccount.Parse(ConnectionString); CloudBlobClient blobClient = storageAccount.CreateCloudBlobClient(); CloudBlobContainer