Download image from URL
-
Hi, I have a list of urls from where I need to download images. The images are being served from a database. Here is a sample url: http://csmedia.mris.com/platinum/getmedia?ID=90217207979&LOOT=50045650620[^] Since it is not an absolute path to the image, I am having trouble with it. Need your valuable expert guidance on a C# function to download image from the urls of the type above. thanks.
-
Hi, I have a list of urls from where I need to download images. The images are being served from a database. Here is a sample url: http://csmedia.mris.com/platinum/getmedia?ID=90217207979&LOOT=50045650620[^] Since it is not an absolute path to the image, I am having trouble with it. Need your valuable expert guidance on a C# function to download image from the urls of the type above. thanks.
you can use WebClient to download files from url
string url = "http://csmedia.mris.com/platinum/getmedia?ID=90217207979&LOOT=50045650620";
System.Net.WebClient wc = new System.Net.WebClient();
wc.DownloadFile(url, "test.jpg"); -
you can use WebClient to download files from url
string url = "http://csmedia.mris.com/platinum/getmedia?ID=90217207979&LOOT=50045650620";
System.Net.WebClient wc = new System.Net.WebClient();
wc.DownloadFile(url, "test.jpg");