I want to show IP camera in my VCSharp application and capture image. This application run want to Win CE 7.0 over Colibri T-20 processor.
You only need a WiFi dongle to connect with de IP Cam server, check out the camera manual for the address of the host. The just make a WebRequest…
private void GetCamImage_1_Tick(object state)
{
WebResponse resp;
HttpWebRequest req = (HttpWebRequest)WebRequest.Create(SOURCE_URL);
req.Timeout = 2000;
req.Credentials = new NetworkCredential("user", "pass");
try
{
resp = req.GetResponse();
Stream stream = resp.GetResponseStream();
Image im = new Bitmap(stream);
resp.Close();
}
catch (Exception err)
{
}
}
thank you sir this is working properly.