HttpWebRequest & HttpWebResponse
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();
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.

AdministratorRank #675 · 3.6K reputationPosted Feb 20, 2003, 5:01 AM EST
AdministratorRank #675 · 3.6K reputationPosted Feb 20, 2003, 5:06 AM EST
AdministratorRank #675 · 3.6K reputationPosted Feb 25, 2003, 8:44 AM EST
AdministratorRank #675 · 3.6K reputationPosted Mar 18, 2003, 6:43 AM EST