Direct upload to Azure blob storage using Plupload - azure

I am trying to use Plupload to directly upload to Azure blob storage. From what I understand Azure requires a PUT request for uploading a file to a blob storage and Plupload only supports POST requests. Is there a way to setup plupload to make a PUT request? Or alternatively is there a way to upload directly to Azure using a POST request?

I think the Azure Storage JavaScript Client Library for Browsers can help you. Here is a guide

Related

Best way to upload medium sized videos to azure blob storage?

I am currently on a student plan for azure (gotta stay finessing as a college student lol) and am looking for the best way to upload videos to azure blob storage. Currently, I am using an azure function api to upload the video, but I am encountering a "Javascript heap out of memory" error when I try and multiparts parse big video files.
Ideally, I'd be able to quickly upload 3.5 minute music videos from mobile and desktop to azure blob storage with this method.
Either a better way of uploading videos to blob storage from my front-end or a solution for the javascript heap out of memory error would be amazing help.
Here's the link to that other post, if you are curious: How to fix JavaScript heap out of memory on multipart.Parse() for azure function api
Approaches:
After a workaround based on your issue, I would suggest that you use Azure Media Services.
Media Services can be integrated with Azure CDN. Refer to check Media Services-Managing streaming endpoints.
All supported formats use HTTP to transport data and benefit from HTTP caching. In live streaming, actual video/audio data is separated into fragments, which are cached in CDNs.
To start, I recommend that you use the Azure Storage SDK with Node.JS. The SDK will handle everything for you. Attaching few uploaders below to check accordingly.
Upload a video to Azure Blob examples
Refer MSDoc & SO thread by #Gopi for uploading a video with the .mp4 extension to Azure blob storage using C#.
You can upload a video using Azure functions directly. But to use Azure Functions, you must create a back-end component written in.NET, Java, JavaScript, or Python.
You can use the "Azure Storage Rest API" to upload files/video files using a storage account, like you mentioned. You will be able to get the desired result by using this Azure Storage Rest -API-MSDoc.

Azure IoT File Upload

I have successfully used this feature to upload files to a storage container in Azure blob storage. I wanted to ask if this form of file upload has the same integrity checks using MD5 hash as there is with normal blob storage uploading. This link describes that feature for blob storage. Also, it seems this check is optional, if so, is there a way for me to ensure that this happens when I upload from my iot device using the azure-iot-sdk's.
I have tested this issue with Azure IoT SDK for CSharp. When uploading the file to azure iot hub, I uses fiddler to catch the http request. Actually, the headers in the request contains Content-MD5. So if you use Azure IoT SDK for CSharp, you need not to check the option for MD5. And you can refer to the method UploadFromStreamAsync in Microsoft Azure Storage SDK for .NET, this method is called when upload file via UploadFromStreamAsync method.
Update:
MD5 cannot be calculated for an existing blob because it would require reading the existing data. Please disable storeBlobContentMD5.

save an image from URL to Azure storage directly

I am a newbie in the Azure storage. Is there any way to save an image from URL to Azure storage directly without downloading the image?
Copy Blob REST API can satisfy your requirement, you just need to specify the image URL as the source Blob.
If you're developing with C#, you can leverage StartCopy method.
If you're developing with node.js, you can leverage startCopyBlob method.

FineUploader to Azure Storage

When uploading to Azure Storage, does FineUploader send the file directly to Azure Storage or to the server first?
I noticed on the website that with S3, one can upload directly but the fact that S3 was singled out got me curious.
I'm looking for a really robust solution to upload files - even large files up to 10 GB - to Azure Storage. Wanted to see if FineUploader could be the answer for me.
When uploading to Azure Storage, does FineUploader send the file directly to Azure Storage or to the server first?
Fine Uploader Azure sends the files directly to Azure Cloud Storage. You do need a server to generate Shared Access Signatures for each request. Fine Uploader Azure will contact your SAS server before each upload request (or before any request to Azure) to obtain a SAS. More information on the Azure feature page at http://docs.fineuploader.com/features/azure.html.
Fine Uploader S3 functions using a similar workflow, but there is also an option to upload files directly to S3 without maintaining your own signature server. That particular option is not available with Fine Uploader Azure.

Upload Vhd to an Azure Page blob in chunks

I am trying to upload a Vhd (sizing atleast 30GB) to a page blob in azure storage in an mvc web application. Due to size of the file i can not upload this large file as a whole as browsers don't allow this large request to be sent. So, the only option is to upload file in chunks (i.e. 4mb). on client size i am able to do chunking and i am sending chunks to my server side controller through an ajax request (in a loop). But using .net sdk for azure i am not finding a way to upload chunks to a page blob.
P.S There is a way to upload file in chunks in block blob using putblock() and putblocklist() methods and i am able to achieve the uploading in that way but i need to create a VM image out of the uploaded vhd and for that purpose it needs to be a page blob.
So, i would welcome any guidance to show me the way to upload vhd in chunks in a Page Blob using azure .net sdk.
You can try AzCopy tool without writing any code.
AzCopy /Source:C:\myfolder
/Dest:https://myaccount.blob.core.windows.net/mycontainer
/DestKey:mykey /Pattern:abc.vhd /BlobType:Page
You could use CloudPageBlob.WritePages method to upload the chunks of data. Please see this blog post from Azure Storage Team for an example of using this method: http://blogs.msdn.com/b/windowsazurestorage/archive/2010/04/11/using-windows-azure-page-blobs-and-how-to-efficiently-upload-and-download-page-blobs.aspx.

Resources