
Web APIs - FileReader - FileReader.readAsDataURL()
发布日期:2021-05-06 23:03:00
浏览次数:27
分类:技术文章
本文共 791 字,大约阅读时间需要 2 分钟。
文章目录
FileReader.readAsDataURL()
The readAsDataURL
method is used to read the contents of the specified or . When the read operation is finished, the becomes DONE
, and the loadend
is triggered. At that time, the attribute contains the data as a representing the file’s data as a base64 encoded string.
Note: The blob’s cannot be directly decoded as Base64 without first removing the Data-URL declaration preceding the Base64-encoded data. To retrieve only the Base64 encoded string, first remove data:*/*;base64,
from the result.
instanceOfFileReader.readAsDataURL(blob);
-
blob
The or from which to read.
选择、读取单个文件并预览
选择、读取多个文件并预览
Reading multiple files
参考
发表评论
最新留言
能坚持,总会有不一样的收获!
[***.219.124.196]2025年04月02日 12时04分05秒
关于作者

喝酒易醉,品茶养心,人生如梦,品茶悟道,何以解忧?唯有杜康!
-- 愿君每日到此一游!
推荐文章
排序算法
2019-03-04
Cookie案例(判断是否首次访问)
2019-03-04
MySQL.数据处理(数据的插入)
2019-03-04
超炫粒子漩涡
2019-03-04
HTML特效代码大全
2019-03-04
Java爬虫.HttpClient
2019-03-04
网页的基本页面实现 ---- 标签
2019-03-04
Java.数组算法(补充)
2019-03-04
Java.常用类.StringBuffer和StringBuilder
2019-03-04
RDD行动操作算子 --- fold(初始值)、reduce
2019-03-04
【Python数据分析与处理 实训02】 ---2012欧洲杯信息分析(数据过滤与排序)
2019-03-04
KeyError: “[‘xxxx‘] not found in axis“
2019-03-04
【Python数据分析与处理 实训05】--- 探索虚拟姓名数据(数据合并)
2019-03-04