-4

I want to capture webcam image in ASP.NET C#. I have searched in Google, but i get code only for windows application. I'm not getting solution for web application. please help me guys..

ganesh m
  • 157
  • 1
  • 7
  • 17

3 Answers3

1

you will have to use a plugin in case you are not using HTML5..
the plugin or html5 will take the image and upload it to the server..
there can be no direct way in which you asp.net server(IIS) can diorectly interact with the webcam

Parv Sharma
  • 12,581
  • 4
  • 48
  • 80
1

This is not at all possible with C#/ASP.net as this is code that runs on the server, NOT on the client's computer which is where the webcam resides.

You will need a client-side solution for this.

The current standings of HTML5 and webcams are very scarce, and no-one seems to have properly implemented it: http://caniuse.com/#search=webcam

I would recommend silverlight or flash (I'm going to swing towards flash as it has a stronger user base - but saying that, if SL is quicker/cleaner to dev, and you tell your users they need SL - it shouldn't be an issue.

Stuart.Sklinar
  • 3,683
  • 4
  • 35
  • 89
0

You can use the same techniques as in a Windows application, but it will use the camera on the server... You need to access the user's camera from its browser, which is tricky. Here's a similar question about HTML5 : How to access webcam from HTML5?

Community
  • 1
  • 1
zmbq
  • 38,013
  • 14
  • 101
  • 171
  • And HTML5 doesn't yet support Webcams - http://stackoverflow.com/questions/1318834/whats-the-status-of-the-html-5-video-tag-and-webcam-integration – Stuart.Sklinar May 14 '12 at 15:50