Invalid character exception when adding Metadata to a CloudBlob

前端 未结 4 1613
南方客
南方客 2021-01-01 15:59

Task

Upload a file to Azure Blob Storage with the original filename and also assign the filename as meta-data to the CloudBlob

4条回答
  •  忘掉有多难
    2021-01-01 16:45

    If the above list is exhaustive, it should be possible to encode the metadata to HTML and then decode it when you need it:

    var htmlEncodedValue = System.Web.HttpUtility.HtmlEncode(value)
    var originalValue = System.Web.HttpUtility.HtmlDecode(value)
    

提交回复
热议问题