Hi Guys,
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 :
<object id = "ob1" width="405" height="190">
<param name="movie" value="WebcamResources/Wildlife.swf"/> // How do i embed here live output of web cam
<embed src="WebcamResources/Wildlife.swf" width="405" type="application/x-shockwave-flash" height="190"></embed>
</object>
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();
}