Congratulations - C# Corner Q4, 2022 MVPs Announced
Why Join
Become a member
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
C# Corner Home
Technologies
Monthly Leaders
ASK A QUESTION
Forum guidelines
Bala
2.1k
43
34.7k
How could i get live screen in ASP.Net web application
Jun 15 2013 9:24 AM
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();
}
Reply
Answers (
1
)
program temprature monitoring and display on hyperterminal
insrt querry problem