【问题标题】:How Can I convert Image of Base64 String into blob using react js?如何使用 React js 将 Base64 字符串的图像转换为 blob?
【发布时间】:2019-02-13 22:20:11
【问题描述】:

我正在使用 react-webcam 来捕获图片。我在 Base 64 中获取了捕获的图像。我想将其转换为 Blob

  capture = () => {

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

【问题讨论】:

    标签: java spring reactjs spring-boot


    【解决方案1】:

    有很多方法可以解决这个问题。可以看看以下解决方案:

    【讨论】:

      猜你喜欢
      • 2019-10-03
      • 2022-08-12
      • 1970-01-01
      • 2015-12-20
      • 2015-04-22
      • 2021-02-01
      • 2021-01-28
      • 2016-04-26
      • 2021-08-18
      相关资源
      最近更新 更多