+ Start a Discussion
Diwan AkashDiwan Akash 

Capture images using the web cam



I am developing an application in which on one of the pages i am going to capture an Image/picture using the Web Camera attached to the computer. I don't know how to do this can you please help me with this.



Akash Diwan

You'll need something like Flash or HTML5 to accomplish your goal. There is no native 'image capture' function in Visualforce.

There is an excellent blog post how to do it using html5: http://davidwalsh.name/browser-camera


Using flash or other plugins is not recommended nowadays, unless your target audience still uses ancient browsers like IE6.




Apex Editor LS - free alternative to Force.com apex editor.
Give kudos (click blue star under my icon) if this was useful

Dhanik L SahniDhanik L Sahni
You can check https://salesforcecodex.com/2019/09/capture-image-using-webcam-in-lightning-component/ for this.

Thank You,