For Programmers: Free Programming Magazines  


Home > Archive > C# > March 2004 > Capturing web pages to jpegs - getting "invalid parameter used"









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Capturing web pages to jpegs - getting "invalid parameter used"
Michael B

2004-03-28, 10:29 pm

I get an "invalid parameter used" error when I execute this script.
What I'm attempting is to capture a web page to a jpg format.

WebRequest request = WebRequest.Create("http://www.yahoo.com");
WebResponse response = request.GetResponse();
Stream responseStream = response.GetResponseStream();

Bitmap bm = new Bitmap(responseStream); <--"invalid parameter used"
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com