Users Pricing

forum

Home Forums Download image from URL in C# – MindStick

Download image from URL in C#

Madam Walker 4162 05 Oct 2013

I know that there are a small amount of similar questions but I have get a problem with the found suggestions.

I tried this:

Image tmpimg = null;

HttpWebRequest _httpWebRequest = (HttpWebRequest)HttpWebRequest.Create(url);
HttpWebResponse _httpWebReponse = (HttpWebResponse)httpWebRequest.GetResponse();
Stream _stream = httpWebReponse.GetResponseStream();
return Image.FromStream(_stream);


But on the last line when I type in Image.  FromStream can´t be found. What can I do?


2 Answers

Markdown for AI

A clean, structured version of this page for AI assistants and LLMs.

Open .md