Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to capture image from client webcam in asp.net

Tags:

asp.net

webcam

I am working on an ASP.Net application and I 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 doing this manually via their locally installed software, save the image as a file and do a normal file upload. However, what I really want to do is incorporate it all into a UI in the browser. I know this means accessing local resources so do I need an ActiveX control or Silverlight or is there something I could do in Javascript for example?

This is initially intended for an Intranet app so I can have control of the client's environemnt, including stipulating the browser etc, which means I can use an ActiveX control if I have to. However, it would be nice if I could write this in a generic way so it could be used in an internet app generally (happy to stipulate that it only works on Windows clients but would be good to get it to work in FireFox).

Thanks.

like image 393
flytzen Avatar asked Nov 26 '08 16:11

flytzen


2 Answers

The only acceptable and universal way to this for now is Flash/Flex application. Flash player presets literally in every browser in the world and all of them has such capability.

like image 71
Artem Tikhomirov Avatar answered Nov 06 '22 22:11

Artem Tikhomirov


VideoCap Pro is quite popular, and it offers an ActiveX version, have you checked it out?

like image 22
rodbv Avatar answered Nov 06 '22 22:11

rodbv