Capture image with webcam and send it to API as base64 or as image (buffer?)
So, the idea is to capture an image using the laptop webcam on React, and after getting the image, send it to an API either as a base64 string or as an image (maybe this last one would be a buffer?)
How can I do that? I found nothing clear on internet 😦 maybe I am not understanding well
Solution:Jump to solution
```js
import { useEffect, useRef, useState } from "react";
export default function Home() {
const videoRef = useRef();...
5 Replies
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
@casarin - Hey I took some time this afternoon to get this set up: https://webcamupload.netlify.app/
Solution
This is using the Cloudinary API and Node.js SDK for the uploads, but you could swap out whatever API you wanted.
yo, thanks for that link, it wasnt available when i searched for the subject... just for curiosity, what did you mean with "Hope ethos is being considered"? ahhaha
hey @joeydi what a cool implementation, lol!
I think this would fit as the solution for the topic 😄
thanks a lot!