I\'m using VB.Net I have an url of an image, let\'s say http://localhost/image.gif
VB.Net
http://localhost/image.gif
I need to create a System.Drawing.Image object from that
You can use HttpClient and accomplish this task async with few lines of code.
public async Task GetImageFromUrl(string url) { var httpClient = new HttpClient(); var stream = await httpClient.GetStreamAsync(url); return new Bitmap(stream); }