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
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: Using WebClient to get Remote Images Produces Grainy GIFs and Can't Handle PNG+BMP
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.