0

I am using react-webcam for capturing picture. I got the captured image in Base 64. I want to convert it into Blob

  capture = () => {

    const imageSrc = this.webcam.getScreenshot();
    Blob imageFile = someFunction(imageSrc) // want this code
    this.setState({
      imgsource: imageFile 
    });
  };

1 Answers1

0

There are a lot of ways to go about this. You can look at the following solutions:

cr05s19xx
  • 2,528
  • 1
  • 21
  • 37