react-native - 使用本机反应将base64转换为图像文件
问题描述
我有问题将base 64转换为图像文件我只有图像base64,我想将其转换为文件,因为我想将该文件发布在表单数据中我需要将base64转换为文件我从这段代码中获取base64并将base64放入国家
takePhotoFromLibrary = () => {
ImagePicker.openPicker({
width: 300,
height: 400,
cropping: true,
includeBase64: true
}).then(image => {
console.log(image);
this.setState({ image: image.data });
});
}
现在我想将base64转换为图像文件
解决方案
推荐阅读
- imagemagick - ImageMagick - 沿内部不透明对象边界分割透明图像
- r - 数据组的R多个滚动平均窗口
- python - 如何部署python脚本?
- python - 使用 Python API 在 IBM Cplex 中以代数模式输入二次规划问题
- python - 如何修改下面的 Python 代码以将字符附加到 Pandas 中字符串的开头?
- mysql - Pentaho Data Integration 8.1 存储库 mysql 错误 (conn:50787)
- spring-boot - Jboss 6.4 的 Spring Boot 2.0.0 War 部署问题
- jquery - Django 导入-导出 KeyError: u'id'
- javascript - d3.js:对嵌套数组进行排序
- vba - Excel VBA 进度条显示基于活动工作表的宏进度