Here i do the project is, to capture live screen through web cam and it will shown in my application.
I tried this with saved flash files.
Source Code is :
// How do i embed here live output of web cam
And Code Behind is:
protected void Page_Load(object sender, EventArgs e)
{
string strPhoto = Request.Form["imageData"]; //Get the image from flash file
byte[] photo = Convert.FromBase64String(strPhoto);
FileStream fs = new FileStream("C:\\Webcam.jpg", FileMode.OpenOrCreate, FileAccess.Write);
BinaryWriter br = new BinaryWriter(fs);
br.Write(photo);
br.Flush();
br.Close();
fs.Close();
}
Amit ChoudharyPosted Jun 18, 2013, 4:32 PM
Read this article with complete source code for how to do this in HTML5.
http://badankles.com/?p=209
Also you can change your DTD from regular html to HTML5 in Asp.net from Visual studio so it won't be any problem.