File download from blob storage RRS feed

  • Question

  • There are several examples and discussion available for file upload but I am wondering why there are no any reference document available for file download.

    I need to download a file at device from cloud using c program. I try to setup libcurl on VS2017 but facing different kind of issues. Socket method for handling http is working fine for general host url but it is not working for Azure blob file link. Please help me with best method that could be used for http file handling from Azure IoT hub.

    Thursday, October 11, 2018 8:41 AM

All replies

  • DownloadToFileAsync is probably what you need.

    see https://github.com/Azure-Samples/storage-blob-dotnet-getting-started/blob/master/BlobStorage/GettingStarted.cs

    see https://azure.microsoft.com/en-us/resources/samples/?sort=0&term=download+blob+storage

    see https://docs.microsoft.com/en-us/dotnet/api/system.net.webclient.downloadfileasync?view=netframework-4.7.2

    Thursday, October 11, 2018 2:43 PM