Upload an image from webcam

Hello!

Is possible to upload an image capturing from webcam? I’m creating a form that requires to upload an image of the customer, but I would like to upload it directly from webcam, just pressing a button (idk if its possible).

It may be possible but a little bit complicated.

  1. You’ll have to create your own picture capturing in a custom element ,

  2. get the image as base64 code ,

  3. pass the code to the page ,

  4. pass it to the backend,

  5. use Buffer and mediaManager.uplaod() to convert the base64 into a file a upload it to the servers.

Let’s see if someone has a simpler way.

1 Like

just use Microsoft Phone Link and an Android phone; drag the image from phone to desktop. inside form click on upload button or whatever button you have in the form and select the image. If you take pictures with your phone and those images are automatically loaded to your OneDrive, just load the picture into the form from the onedrive source location.