You have an application that accesses a Web server named Server1. You need to download an image named Imagel.jpg from Server1 and store the image locally as Filel.jpg. Which code should you use?
A. Option A
B. Option B
C. Option C
D. Option D
One Comment on “Which code should you use?”
cristissays:
C works fine.
WebClient client = new WebClient();
client.DownloadFile(“https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png”, “C:\\Temp\\img.jpg”);
client.Dispose();
C works fine.
WebClient client = new WebClient();
client.DownloadFile(“https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png”, “C:\\Temp\\img.jpg”);
client.Dispose();
3
0