Administrator

Administrator

  • Tech Writer
  • 2.2k
  • 1.5m

HttpWebRequest & HttpWebResponse

Feb 19 2003 5:57 PM
I'm trying to get files off the net using the HttpWebRequest and HttpWebResponse classes, I can get text based files fine, but when I use the same code for other file types the data seems to dissapear. I'm using the code below, any suggestions? StreamReader stream = new StreamReader(response.GetResponseStream()); data += stream.ReadToEnd();

Answers (4)