当前位置:网站首页>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 .
边栏推荐
- Adobe Premiere基础-工具使用(选择工具,剃刀工具,等常用工具)(三)
- 【QNX Hypervisor 2.2 用户手册】3.2.1 VM配置语法
- Dynamic SQL of DB2 SQL pl
- 华为云鲲鹏DevKit代码迁移实战
- LoRa模块无线收发通信技术详解
- [kuangbin]专题十二 基础DP1
- Adobe Premiere foundation - opacity (matte) (11)
- Building smart community Internet of things based on smart road lamp posts
- 数字化时代,企业为什么要做数字化转型?
- In 2021, the world's top ten analog IC suppliers: Ti ranked first, and skyworks' revenue growth was the highest
猜你喜欢

Metadata management, the basic construction of enterprises in the digital era

Seata安装Window环境

Request header field xxxx is not allowed by Access-Control-Allow-Headers in preflight response问题

Wechat applet, get the current page and judge whether the current page is a tabbar page

如何设置 SaleSmartly 以进行 Google Analytics(分析)跟踪

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

Adobe Premiere基础(动画制作)(七)

滑动窗口最值问题

In the era of data processing, data analysis has become the basic construction

Adobe Premiere基础-工具使用(选择工具,剃刀工具,等常用工具)(三)
随机推荐
&& 与 ||
AgI foundation, uncertain reasoning, subjective logic Ppt1
Group a large number of files in the same folder into multiple groups according to settings
The value of Bi in the enterprise: business analysis and development decision
Adobe Premiere foundation - material nesting (animation of Tiktok ending avatar) (IX)
数字化时代,企业为什么要做数字化转型?
[QNX hypervisor 2.2 user manual] 3.2.3 ACPI table and FDT
AGI基础,不确定性推理,主观逻辑一书ppt2
基础提升---树形DP补充
[代码]神经符号生成机器
Adobe Premiere基础-介绍,配置,快捷键,创建项目,创建序列(一)
商业智能BI在企业的价值之:业务分析发展决策
Wireshark学习笔记(二)取证分析案例详解
关于YUV格式的一些总结
Salesmartly | add a new channel slack to help you close the customer relationship
MySQL index invalidation scenario
商业智能BI的服务对象,企业管理者的管理“欲望”该如何实现?
跨域报错:When allowCredentials is true, allowedOrigins cannot contain the special value “*“
Adobe Premiere基础(动画制作)(七)
如何设置 SaleSmartly 以进行 Google Analytics(分析)跟踪
https://serious-lose.notion.site/Data-URL-8e2c2f8d134a42978744586d2e88b4d5