Quote:
Stream receiveStream = myHttpWebResponse.GetResponseStream();
StreamReader streamReader = new StreamReader(receiveStream);
byte[] data = System.Text.Encoding.Default.GetBytes(streamReader.ReadToEnd());
You're reading binary data from the remote server. You're sending binary data back to the client. So why are you converting that binary data to a string
(using UTF8), and then converting it back to binary
(using your server's default encoding)?
Remove that step, and that will probably fix your problem:
Stream receiveStream = myHttpWebResponse.GetResponseStream();
Response.ContentType ="image/jpeg";
receiveStream.CopyTo(Response.OutputStream);
Response.End();