forum

Home / DeveloperSection / Forums / Download image from URL in C#

Download image from URL in C#

Madam Walker346905-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?


Updated on 21-Oct-2013

Can you answer this question?


Answer

2 Answers

Liked By