tags:

views:

134

answers:

1

How can I create a screenshot of an http website and save it on my server, using dot.net

        byte[] byteArray = Encoding.ASCII.GetBytes( resp.BodyStr );
        MemoryStream stream = new MemoryStream( byteArray ); 

        pictureBox1.Image = Image.FromStream(stream);
        stream.Close();

I have tried the above code but it's not working

+1  A: 

Edit: Someone (not the author) completely changed the question in the OP. My answer was right for that question, and now I'm getting marked down for it.

Edit: Here is a wonderful answer for you. Check the accepted answer for exactly what you're after: http://stackoverflow.com/questions/499210/using-webclient-to-get-remote-images-produces-grainy-gifs-and-cant-handle-pngbm

280Z28