For example, there are 2 links:
https://new.vk.com/images/icons/head_icons.png (ссылка на изображение) https://vk.com/images/icons/head_icons.png (битая ссылка, 404-ая страница) In the program you need to upload 30,000 images, some links will be broken. How to make a check for the presence of the image link? You can, of course, load the first time as a page and check for any html tag (for example, <html> ), and if there is no this tag, download the second time as an image, but this crutch will not help with such large volumes for you have to load the same thing twice, in most cases.
Statusfields,Content-Type... (by the way, what does it mean to "download as an image"?) - PinkTuxusing (WebClient client = new WebClient()) { client.DownloadFile(*ссылка*, *путь*); }using (WebClient client = new WebClient()) { client.DownloadFile(*ссылка*, *путь*); }- Jagailo