当前位置:网站首页>Data URL
Data URL
2022-06-10 18:51:00 【SeriousLose】
Data URI
Use data URI To present some longer content ,
- Such as a string of binary data encoding 、 Pictures, etc , use
base64Coding makes the content shorter . - And for pictures , stay gzip After the compression ,
base64The picture is actually bigger than the originalgzipLarge compression , The increase in volume is about one third , So it needs to be weighed when using .
data:[<mime type>][;charset=<charset>][;base64],<encoded data>
- data: Protocol header , It identifies this content as a data URI resources .
- MIME type , Indicates how this string of content is presented ,
- such as :text/plain, It is displayed in text type ,
- image/jpeg, With jpeg Show... In the form of pictures ,
- Again , The client will also use this MIME Type to parse data
- Encoding settings , The default encoding is charset=US-ASCII,
- That is, each character in the data section is automatically encoded as %xx,
- About coding tests ,
- You can input the following two strings in the browser address box
- data:text/html, Hello
- Output : I'm sorry ソ
- data:text/html;charset=UTF-8, Hello
- Output : Hello
- data:text/html;charset=gbk, Hello
- Output : I'm sorry ソ
- data:text/html;charset=UTF-8;base64,5L2g5aW9
- Output : Hello
- data:text/html, Hello
- base64 Coding setting , This is an option ,base64 The code contains only 0-9,a-z,A-Z,+,/,=, among = It is used to encode the padding .
- Data URI The content that carries , It can be written in plain text , It can also be through base64 code The content of .
边栏推荐
- Linked List
- 干货 | 一文搞定 uiautomator2 自动化测试工具使用
- Cross domain error: when allowcredentials is true, allowedorigins cannot contain the special value "*“
- 元数据管理,数字化时代企业的基础建设
- Custom types: structural bodies
- Building smart community Internet of things based on smart road lamp posts
- SaleSmartly | 再添新渠道Slack,助你拉近客户关系
- “双碳”背景下 数据中心规划设计的新趋势及展望
- VMware ESXi 各版本号对照表
- VMware Horizon 8 2111 部署系列(十六)Blast带宽测试
猜你喜欢

Adobe Premiere基础-不透明度(混合模式)(十二)

Adobe Premiere foundation - Import and export, merge materials, source file compilation, offline (II)

如何正确理解商业智能BI的实时性?

Seata installing the window environment

How to realize the management "desire" of Business Intelligence BI service objects and enterprise managers?

商业智能BI的价值,可视化报表等于商业智能BI吗?

二叉树之Morris遍历

What is Bi? Talk about the definition and function of Bi

Common methods of stream flow lambder

阵列信号处理仿真之四——Z变换分析阵列多项式
随机推荐
Real time business intelligence Bi (II): reasonable ETL architecture design to realize quasi real time Business Intelligence BI
Request header field XXXX is not allowed by access control allow headers in preflight response
两部门发文明确校外培训机构消防安全条件
In the digital age, why should enterprises make digital transformation?
半导体硅片持续供不应求,胜高长期合约价上涨30%!
Db2 SQL PL的锚点类型和行数据类型
Db2 SQL PL的动态SQL
不确定性推理:让模型知道自己不知道
Adobe Premiere基础特效(卡点和转场)(四)
商业智能BI如何帮企业降低人力、时间和管理成本?
Uncertainty reasoning: let the model know that it doesn't know
商业智能BI的服务对象,企业管理者的管理“欲望”该如何实现?
数字化时代,企业为什么要做数字化转型?
【QNX Hypervisor 2.2 用户手册】3.2.1 VM配置语法
AGI基础,不确定性推理,主观逻辑一书ppt2
“数字化转型,数据先行”,谈谈数据治理对企业来说到底有多重要
基础提升---树形DP补充
Stream流的常用方法-Lambder
How to set up salesmartly for Google Analytics tracking
Adobe Premiere基础-不透明度(蒙版)(十一)
https://serious-lose.notion.site/Data-URL-8e2c2f8d134a42978744586d2e88b4d5