当前位置:网站首页>图片转base64
图片转base64
2022-04-22 18:49:00 【小鑫】
var reader = new FileReader()
// 传图片的 file 对象
// 可通过 e.target.files 拿到
reader.readAsDataURL(file)
reader.onload = function () {
// this. result 就是转换后的 base64
console.log(this.result)
}
版权声明
本文为[小鑫]所创,转载请带上原文链接,感谢
https://cloud.tencent.com/developer/article/1985962
边栏推荐
- Model Inspector — 软件模型静态规范检查工具
- Im instant messaging development how to design a database that can support millions of concurrent users
- MySQL数据库中的索引(含SQL语句)
- [fundamentals of interface testing] Chapter 9 | detailed explanation of postman global variables and environment variables
- Stream demo
- redis主从复制
- 【Spark】(task6)Spark RDD完成统计逻辑
- 乌国家安全与国防委员会秘书:目前不可能恢复乌克兰的核地位
- [untitled] 2022 coal mine outburst prevention test exercise and simulation test
- [proteus simulation] 51 single chip microcomputer 8-way actuator inching ± 90 ° inching control
猜你喜欢

What are the advantages of enterprise communication software compared with other communication software

C# 将OFD转为PDF

RHCE-ansible

带你了解极具弹性的Spark架构的原理

The Sandbox 与 Slipknot 以及 Knotfest 达成合作关系,共同打造 KNOTVERSE

描述文件中的全局类型

存储网络请求日志

PostgreSQL 15 will soon support merge statements in the SQL standard

DL yolov3: translation and interpretation of yolov3: an incremental improvement

Hackmyvm (XXV) helium, series of articles continuously updated
随机推荐
2022年江西省安全员A证考试练习题及模拟考试
[drive] TX2 transplants EC20 startup module
【Spark】(task6)Spark RDD完成统计逻辑
Global type in description file
k8s 部署Redis集群
[fundamentals of interface testing] Part 8 common assertions of postman and the working principle of assertions
Im instant messaging development how to design a database that can support millions of concurrent users
高并发之——深度解析ScheduledThreadPoolExecutor类的源代码
花样机模板电脑CAD免费打板转格式软件PS300B使用步骤教程:日本兄弟牌Brother花样机通用CAD画图打板.dxf文件转.emb文件
Transformation operator
模块代码的类型描述文件
C语言的预编译(预处理)#define
jsp学习(九.Filter过滤器、通配符和Cookie处理)
kettle庖丁解牛第13篇之XML文件输入
Model Inspector — 软件模型静态规范检查工具
带你了解极具弹性的Spark架构的原理
聊聊缓存布尔值踩到的坑
文本分类问题中的一些指标
今日指数项目之数据分时行情、数据备份和个股涨跌幅开发【十一】
MFC principle and method (II)