当前位置:网站首页>The applet image cannot display Base64 pictures. The solution is valid
The applet image cannot display Base64 pictures. The solution is valid
2022-07-25 11:57:00 【hexiaoniao】
Find ways Online . There is no effect !!!! The pit is dead !!!!
var data = res.data
var array = wx.base64ToArrayBuffer(res.data)
var base64 = wx.arrayBufferToBase64(array)
if (res.statusCode == 200) {
that.setData({
imageData: 'data:image/jpeg;base64,' + base64, // data Returned for interface base64 character string
})
}
The right way is
image1path = image1path.replace(/[\r\n]/g,"");
No, you hit me !!!
边栏推荐
- 一文入门Redis
- Risks in software testing phase
- 【leetcode刷题】
- 创新突破!亚信科技助力中国移动某省完成核心账务数据库自主可控改造
- "Mqtt protocol explanation and Practice (access to onenet)" of wiznet w5500 series training activities
- Teach you how to configure S2E as the working mode of TCP server through MCU
- Teach you how to configure S2E as the working mode of TCP client through MCU
- brpc源码解析(七)—— worker基于ParkingLot的bthread调度
- brpc源码解析(八)—— 基础类EventDispatcher详解
- [USB device design] - composite device, dual hid high-speed (64BYTE and 1024byte)
猜你喜欢

论文解读(MaskGAE)《MaskGAE: Masked Graph Modeling Meets Graph Autoencoders》

Brpc source code analysis (VII) -- worker bthread scheduling based on parkinglot

winddows 计划任务执行bat 执行PHP文件 失败的解决办法

相似矩阵,可对角化条件

浅谈低代码技术在物流管理中的应用与创新

W5500上传温湿度到oneNET平台

软件测试阶段的风险

创新突破!亚信科技助力中国移动某省完成核心账务数据库自主可控改造

模型部署简述

dirReader.readEntries 兼容性问题 。异常错误DOMException
随机推荐
brpc源码解析(四)—— Bthread机制
Maskgae: masked graph modeling meets graph autoencoders
Review in the middle of 2022 | understand the latest progress of pre training model
硬件外设=maixpy3
【IMX6ULL笔记】--内核底层驱动初步探究
JS 面试题:手写节流(throttle)函数
Varest blueprint settings JSON
30 sets of Chinese style ppt/ creative ppt templates
JS流程控制
OneNET平台控制W5500开发板LED灯
Database integrity -- six constraints learning
JDBC summary
【高并发】高并发场景下一种比读写锁更快的锁,看完我彻底折服了!!(建议收藏)
There is no sound output problem in the headphone jack on the front panel of MSI motherboard [solved]
Talking about Devops monitoring, how does the team choose monitoring tools?
油猴脚本链接
JS scope and pre parsing
Javescript loop
小程序image 无法显示base64 图片 解决办法 有效
第4章线性方程组