471,347 Members | 1,770 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,347 software developers and data experts.

Problem with downloading an image.cgi

I've got this code:
private void button1_Click_1(object sender, System.EventArgs e)
System.Net.WebClient Client = new System.Net.WebClient();
System.IO.Stream strm =

Bitmap image = new Bitmap(strm);
this.pictureBox1.Image = image;

And my problem is: at some PC it throws exception:
System.Net.WebException: The server committed a protocol violation.
Section=ResponseHeader Detail=CR must be followed by LF
but at some not.

Do you have an idea what to do to download this image at all computers?

Thank you for help
Jul 21 '05 #1
0 1082

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Monte Gardner | last post: by
4 posts views Thread by moondaddy | last post: by
2 posts views Thread by Rajah | last post: by
2 posts views Thread by archulu | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.