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 
    });
  };
Jerin Jose
  • 3
  • 1
  • 3

1 Answers1

0

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

cross19xx
  • 3,170
  • 1
  • 25
  • 40