当前位置:网站首页>JS Base64 to picture
JS Base64 to picture
2022-07-18 17:18:00 【Shi Yuemiao】
The data given by the background has data:image/jpg;base64,

getBase64(base64) {
var changebase64 = base64.replace(/[\r\n]/g, "");
console.log(changebase64);
return changebase64;
},
// Experimental report
getreport(id) {
getAppLabExaminationInfo(id).then((res) => {
if (res.code == 200) {
//res.data.filePath Backstage base64 data
this.imgurl=this.getBase64(res.data.filePath);
this.dialogVisible2 = true;
}
});
},
If there is no return data , Use this
getBase64(base64) {
var changebase64 =
"data:image/jpg;base64," + base64.replace(/[\r\n]/g, "");
console.log(changebase64);
return changebase64;
},
design sketch 
边栏推荐
- [golang] slice
- Introduction and simple application of thymeleaf
- OSPF (open shortest path first) anti ring and networking application hidden dangers caused by calculation errors
- String 实现模糊查询
- 配置typora+PicGo+Aliyun OSS服务
- 关于TCP/IP协议漏洞的安全措施
- Using C language to realize the odd number problem of 0-10 -- Original
- TypeScript 类的使用
- Alipay sandbox tests mobile website payment, prompting that the merchant's cooperation agreement has expired and cannot continue to be used
- 错误:The source of the existing CacheManager is: URLConfigurationSource
猜你喜欢

醋酸氯霉素的实验室程序&参考文献

1.8 类和对象

支付宝沙箱测试手机网站支付,提示商户合作协议已到期,无法继续使用

面试官:为什么 Redis 要有哨兵?我该怎么回答?
![[quick application] there are many words in the text component. How to solve the problem that the div style next to it will be stretched](/img/d2/d07736dab57ed8bba8751b17af7b13.png)
[quick application] there are many words in the text component. How to solve the problem that the div style next to it will be stretched

View for recording a temperature curve

1.4 process control statement

架构系列之标准Web系统的架构分层

国际NFT交易所排行榜前10名

配置typora+PicGo+Aliyun OSS服务
随机推荐
元宇宙、NFT数字藏品是什么?
OSPF(Open Shortest Path First开放式最短路径优先)防环以及计算错误带来的组网应用隐患
安全的终止2nodeos的运行
thymeleaf介绍与简单应用
Stc8h Development (XIV): I2C Drive rx8025t high precision Real time clock chip
ETCD数据库源码分析——etcdserver bootstrap去除v2store
[HMS core] [wallet kit] [solution] why can't Huawei wallet's client sample code run
支付宝沙箱测试手机网站支付,提示商户合作协议已到期,无法继续使用
如何在Kubernetes平台上搭建云IDE Theia
OSPF (open shortest path first) anti ring and networking application hidden dangers caused by calculation errors
1.8 classes and objects
宝立食品上交所上市:年营收15.78亿 市值58亿
交换
多米诺骨牌上演:三箭资本崩盘始末
2022年全球职业教育行业发展报告
MongoDB慢查询与索引
mysql 数据库存储引擎怎么选择?快来看看性能测试吧
Error in v-on handler: “ReferenceError: Toast is not defined“
Sewage discharge monitoring, environmental protection data acquisition instrument to help urban black and odorous water treatment
How to build cloud ide Theia on kubernetes platform