How to capture client webcam image in asp.net

I am working on an ASP.Net application and want users to be able to take a picture with their local webcam and then upload it to the server. I can, of course, rely on users who do this manually through their locally installed software, save the image as a file, and perform normal file uploads. However, what I really want to do is integrate all of this into the browser user interface. I know this means accessing local resources, so do I need an ActiveX or Silverlight control or is there something I can do in Javascript, for example?

This was originally intended for an Intranet application, so I can control the client environment, including browser settings, etc., which means that I can use the ActiveX control if necessary. Nevertheless, it would be nice if I could write it in a general way so that it can be used in the Internet application as a whole (we are pleased to stipulate that it works only on Windows clients, but it would be nice to make it work in FireFox )

Thanks.

+6
webcam
source share
5 answers

The only acceptable and universal way to do this is with the Flash / Flex application. Flash Player presets in virtually every browser in the world, and they all have this feature.

+3
source share

VideoCap Pro is pretty popular and it offers an ActiveX version, have you checked this?

+1
source share

That sounds very suspicious to me. You understand what vile applications can be applied, right? A web page that, when a user views it, unknown to them, their webcam takes a picture .... I do not like it.

0
source share

You can use the Nimbb API to record video in webcams in a browser.

0
source share

You can get the image from the client’s webcam in asp.net, you need to install Silverlight 4 with Visual Studio 2010:

Follow the link below:

http://wildermuth.com/2009/11/23/Taking_a_WebCam_Photo_with_Silverlight

0
source share

All Articles