I have about 10 images to download. Let them be image1.jpg, image2.jpg......image10.jpg.
I used Response.GetAsynchronously to download the images and I get the update from StreamFinish when the download is complete. Now the issue is the order in which files are downloaded.
I want to download the files in the order from image1 to image10. I have stored the list of urls in an array and use a For Next to give HTTP requests 1 by 1 for download. But the issue is since it says GetAsynchronously, the download completes in random order i.e. sometimes image1 is downloaded first, then image4, then image3 like that.
My question is is it possible to wait for 1 image to download and then proceed to another? Or is it possible to know when all 10 images have been downloaded in any random order?
I used Response.GetAsynchronously to download the images and I get the update from StreamFinish when the download is complete. Now the issue is the order in which files are downloaded.
I want to download the files in the order from image1 to image10. I have stored the list of urls in an array and use a For Next to give HTTP requests 1 by 1 for download. But the issue is since it says GetAsynchronously, the download completes in random order i.e. sometimes image1 is downloaded first, then image4, then image3 like that.
My question is is it possible to wait for 1 image to download and then proceed to another? Or is it possible to know when all 10 images have been downloaded in any random order?