Check if file exists on blob storage with Azure functions

前端 未结 4 1261
走了就别回头了
走了就别回头了 2021-01-25 01:28

Based on https://ppolyzos.com/2016/12/30/resize-images-using-azure-functions/ I have the following C# code to resize an image using Azure Functions.

#r \"Microso         


        
4条回答
  •  不要未来只要你来
    2021-01-25 02:21

    Check if your Blob exists in the container, but then you will need to add the CloudBlobContainer as input parameter as well.

    CloudBlockBlob existingBlob = container.GetBlockBlobReference(blobName);
    

    And check if it exists using

    await existingBlob.ExistsAsync()
    

提交回复
热议问题