Answer the question
In order to leave comments, you need to log in
How to download an image from a link with GET parameters?
Subject.
When downloading an image from this link:
https://domain.com/data/name-docement?k=6&m=903165532&s=612x612&w=0&h=TMnsNyav_kyvQvBaxS9zwpZN4PjInF_t-FlNbuKnO0s=
https://domain.com/data/name-docement
Answer the question
In order to leave comments, you need to log in
It may be necessary to add the parameters themselves separately, to the QueryString.
That is, if you sketch it quickly, everything should look something like this:
WebClient myWebClient = new WebClient();
myWebClient.QueryString.Add("k", "6");
myWebClient.QueryString.Add("m", "903165532");
myWebClient.QueryString.Add("s", "612x612");
myWebClient.QueryString.Add("w", "0");
myWebClient.QueryString.Add("h", "TMnsNyav_kyvQvBaxS9zwpZN4PjInF_t-FlNbuKnO0s=");
myWebClient.DownloadFileAsync("https://domain.com/data/name-docement", path);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question