You will need some kind of trusted code on the client side if you want to do this. Java, Flash, SilverLight - all features. But they can create a dependency on a specific WebCam / Software / API.
You are much better off setting up your webcam to place your photos in one place and have a web form that accepts the file.
This way, when your webcam crashes and you cannot get the same device that you do not need to transcode.
source share