当前位置:网站首页>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 !!!
边栏推荐
- [MySQL learning 09]
- Teach you how to configure S2E to UDP working mode through MCU
- 浅谈低代码技术在物流管理中的应用与创新
- Brpc source code analysis (VI) -- detailed explanation of basic socket
- session和cookie有什么区别??小白来告诉你
- WIZnet嵌入式以太网技术培训公开课(免费!!!)
- 'C:\xampp\php\ext\php_zip.dll' - %1 不是有效的 Win32 应用程序 解决
- Plot ==pyqt5
- What is the global event bus?
- 阿里云技术专家秦隆:可靠性保障必备——云上如何进行混沌工程
猜你喜欢

Reflection reflection

MIIdock简述

pycharm连接远程服务器ssh -u 报错:No such file or directory

Functions in JS

brpc源码解析(五)—— 基础类resource pool详解

How to solve the problem that "w5500 chip cannot connect to the server immediately after power failure and restart in tcp_client mode"

Small program of vegetable distribution in community

brpc源码解析(七)—— worker基于ParkingLot的bthread调度
![[imx6ull notes] - a preliminary exploration of the underlying driver of the kernel](/img/0f/a0139be99c61fde08e73a5be6d6b4c.png)
[imx6ull notes] - a preliminary exploration of the underlying driver of the kernel

Common linear modulation methods based on MATLAB
随机推荐
Signal and slot mechanism ==pyqt5
Differences in usage between tostring() and new string()
教你如何通过MCU配置S2E为TCP Client的工作模式
Oracle parsing XML with the same name
What is the difference between session and cookie?? Xiaobai came to tell you
Oil monkey script link
The most efficient note taking method in the world (change your old version of note taking method)
JS作用域以及预解析
W5500 multi node connection
There is no sound output problem in the headphone jack on the front panel of MSI motherboard [solved]
session和cookie有什么区别??小白来告诉你
The bank's wealth management subsidiary accumulates power to distribute a shares; The rectification of cash management financial products was accelerated
【mysql学习08】
cookie and session
JS中的函数
flinksql client 连接kafka select * from table没有数据报错,如何解决?
Power BI----这几个技能让报表更具“逼格“
Qin long, a technical expert of Alibaba cloud: a prerequisite for reliability assurance - how to carry out chaos engineering on the cloud
W5500在处于TCP_Server模式下,在交换机/路由器网络中无法ping通也无法通讯。
Attendance system based on w5500