forum

home / developersection / forums / download image from url in c#

Download image from URL in C#

Madam Walker 3948 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?


c# c# 
Updated on 21-Oct-2013
Madam Walker

Other


Message
Can you answer this question?

Answer

2 Answers

Liked By