# Upload an image from webcam

**URL:** <https://forum.wixstudio.com/t/upload-an-image-from-webcam/36685>\
**Category:** Ask the community\
**Tags:** question, code\
**Created:** [August 18, 2022, 5:08pm UTC](https://forum.wixstudio.com/t/upload-an-image-from-webcam/36685 "2022-08-18T17:08:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![admin7211](https://avatars.discourse-cdn.com/v4/letter/a/90db22/32.png) [@admin7211](https://forum.wixstudio.com/u/admin7211)\
**Post date:** [August 18, 2022, 5:08pm UTC](https://forum.wixstudio.com/t/upload-an-image-from-webcam/36685/1 "2022-08-18T17:08:36Z")

</div>

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).

---

<div class="post-metadata">

**Author:** ![J.D](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/j.d/32/7312_2.png) [@J.D](https://forum.wixstudio.com/u/J.D)\
**Post date:** [August 18, 2022, 9:37pm UTC](https://forum.wixstudio.com/t/upload-an-image-from-webcam/36685/2 "2022-08-18T21:37:28Z")

</div>

It may be possible but a little bit complicated.

1. You’ll have to create your own picture capturing in a [custom element](https://support.wix.com/en/article/velo-about-custom-elements) ,

2. [get the image as base64 code](https://jsfiddle.net/qfaeb3tL/1/) ,

3. [pass the code to the page](https://www.wix.com/velo/reference/$w/customelement/on) ,

4. pass it to the backend,

5. use Buffer and [mediaManager.uplaod()](https://www.wix.com/velo/reference/wix-media-backend/mediamanager-obj/upload) to convert the base64 into a file a upload it to the servers.

Let’s see if someone has a simpler way.

---

<div class="post-metadata">

**Author:** ![imagineimage](https://avatars.discourse-cdn.com/v4/letter/i/53a042/32.png) [@imagineimage](https://forum.wixstudio.com/u/imagineimage)\
**Post date:** [December 19, 2024, 12:08pm UTC](https://forum.wixstudio.com/t/upload-an-image-from-webcam/36685/3 "2024-12-19T12:08:14Z")

</div>

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.
