Click here to Skip to main content
15,895,011 members
Home / Discussions / C#
   

C#

 
AnswerRe: help in assembly Pin
peterchen21-Apr-07 0:55
peterchen21-Apr-07 0:55 
QuestionImporting Data from Excel sheet to .net application. Pin
tirumal123120-Apr-07 23:19
tirumal123120-Apr-07 23:19 
AnswerRe: Importing Data from Excel sheet to .net application. Pin
ParimalaRadjaram20-Apr-07 23:42
ParimalaRadjaram20-Apr-07 23:42 
AnswerRe: Importing Data from Excel sheet to .net application. Pin
sthotakura20-Apr-07 23:44
sthotakura20-Apr-07 23:44 
Questiongeting image from http Pin
Seishin#20-Apr-07 22:36
Seishin#20-Apr-07 22:36 
AnswerRe: geting image from http Pin
Stefan Troschuetz20-Apr-07 23:23
Stefan Troschuetz20-Apr-07 23:23 
GeneralRe: geting image from http Pin
Seishin#20-Apr-07 23:53
Seishin#20-Apr-07 23:53 
AnswerRe: geting image from http Pin
Sascha Andres22-Apr-07 2:59
Sascha Andres22-Apr-07 2:59 
Hi,

basically getting data via Http contains two things:

1. the request
2. the response

The strean object of the Request object (HttpWebRequest) in your case is
to send data to the web. Getting the answer is to get the response and
reading it's stream.

So use something like this:

HttpWebRequest hwr = HttpWebRequest.Create("http://www.onet.pl/_m/32006b80b5eb4c237bb11e1a25895e83.jpg") as HttpWebRequest;<br />
HttpWebResponse resp = (HttpWebResponse) hwr.GetResponse();<br />
pictureBox1.Image = Image.FromStream(resp.GetResponseStream());<br />
resp.Close();<br />
resp = null;<br />
hwr = null;


Don't forget to close the repsonse! If not, you might run into exceptions
after getting data from the web multiple times.

-sa

--
http://www.livingit.de
http://www.not2long.net

QuestionHeeeeeeeeeeeeeeeeeeelp:( Pin
Muammar©20-Apr-07 22:01
Muammar©20-Apr-07 22:01 
AnswerRe: Heeeeeeeeeeeeeeeeeeelp:( Pin
Christian Graus20-Apr-07 23:18
protectorChristian Graus20-Apr-07 23:18 
GeneralRe: Heeeeeeeeeeeeeeeeeeelp:( Pin
Muammar©20-Apr-07 23:27
Muammar©20-Apr-07 23:27 
GeneralRe: Heeeeeeeeeeeeeeeeeeelp:( Pin
Christian Graus21-Apr-07 0:41
protectorChristian Graus21-Apr-07 0:41 
GeneralRe: Heeeeeeeeeeeeeeeeeeelp:( Pin
Christian Graus21-Apr-07 0:43
protectorChristian Graus21-Apr-07 0:43 
GeneralRe: Heeeeeeeeeeeeeeeeeeelp:( Pin
Muammar©21-Apr-07 1:11
Muammar©21-Apr-07 1:11 
GeneralRe: Heeeeeeeeeeeeeeeeeeelp:( Pin
Christian Graus21-Apr-07 1:23
protectorChristian Graus21-Apr-07 1:23 
QuestionSHOW EVERYONE HOW TO MAKE AN UNINSTALL FILE Pin
phantanagu20-Apr-07 21:56
phantanagu20-Apr-07 21:56 
Questionhow to publish an assembly Pin
Shuaib wasif khan20-Apr-07 21:15
Shuaib wasif khan20-Apr-07 21:15 
AnswerRe: how to publish an assembly Pin
sthotakura20-Apr-07 22:25
sthotakura20-Apr-07 22:25 
GeneralRe: how to publish an assembly Pin
Shuaib wasif khan20-Apr-07 23:14
Shuaib wasif khan20-Apr-07 23:14 
QuestionRe: how to publish an assembly Pin
sthotakura20-Apr-07 23:27
sthotakura20-Apr-07 23:27 
AnswerRe: how to publish an assembly Pin
Shuaib wasif khan20-Apr-07 23:39
Shuaib wasif khan20-Apr-07 23:39 
QuestionRe: how to publish an assembly Pin
sthotakura20-Apr-07 23:48
sthotakura20-Apr-07 23:48 
AnswerRe: how to publish an assembly Pin
Shuaib wasif khan21-Apr-07 0:26
Shuaib wasif khan21-Apr-07 0:26 
AnswerRe: how to publish an assembly Pin
sthotakura21-Apr-07 7:54
sthotakura21-Apr-07 7:54 
QuestionDataGridView databounding Pin
Yoyosch20-Apr-07 21:07
Yoyosch20-Apr-07 21:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.