How to use camara to take a picture from application ?

How to use camara to take a picture from application ?

  
How to use camara to take a picture from application ?
please help....
There was a similar question posted 4 hours before (3 questions before your question). 
If your question is regarding taking pictures using a mobile CAMERA,
Please use the search feature before submitting duplicates.
check my reply here https://www.outsystems.com/forums/discussion/13345/using-the-camera-of-a-mobile-phone/#Post48681
and continue the discussion on that thread.
No actualy my requirement is capture the picture from web cam through
desktop or laptop..
I would really hope a browser cannot do that!
It can be done using HTML 5 using navigator.getUserMedia.Although it is still new and be wary of cross browser support. User have to give permission to your website to access their cam. You can find many examples online for doing this. 
Could you please provide one complete example where i can see how i can do it..??
I would try to follow this:

https://developer.mozilla.org/en-US/docs/Web/API/WebRTC_API/Taking_still_photos