C
C# Learner
response = (HttpWebResponse)request.GetResponse();
StreamReader sr = new StreamReader(response.GetResponseStream(),
Encoding.Default);
string s = sr.ReadToEnd();
When the above is used to download an image, say, the image's bytes
get messed up. How can I do the above *without* messing with the
bytes?
StreamReader sr = new StreamReader(response.GetResponseStream(),
Encoding.Default);
string s = sr.ReadToEnd();
When the above is used to download an image, say, the image's bytes
get messed up. How can I do the above *without* messing with the
bytes?