Uploading blockblob and setting contenttype

后端 未结 6 1116
旧巷少年郎
旧巷少年郎 2020-12-15 16:20

I\'m using Microsoft.WindowsAzure.Storage.* library from C#.

This is how I\'m uploading things to storage:

// Store in storage
CloudStor         


        
6条回答
  •  半阙折子戏
    2020-12-15 17:02

    Using the new SDK Azure.Storage.Blobs

    BlobHttpHeaders blobHttpHeaders = new BlobHttpHeaders();
    blobHttpHeaders.ContentType = "image/jpg";
    blobClient.SetHttpHeaders(blobHttpHeaders);
    

提交回复
热议问题