Batch Uploading Huge Sets of Images to Azure Blob Storage
问题 I have about 110,000 images of various formats (jpg, png and gif) and sizes (2-40KB) stored locally on my hard drive. I need to upload them to Azure Blob Storage. While doing this, I need to set some metadata and the blob's ContentType, but otherwise it's a straight up bulk upload. I'm currently using the following to handle uploading one image at a time (paralleled over 5-10 concurrent Tasks). static void UploadPhoto(Image pic, string filename, ImageFormat format) { //convert image to bytes