Recently writing interface ———— about image upload
The foreground uses the Vuejs, uses the base64 to upload the picture, filedata: "Data:image/jpeg;base64,9j/4aaqsk ...", puts this data directly in the address bar, also can display the picture, But
Data/base64 webmasters often use more data. I often see that they generate data/base64 data for images and then input the data. This shows a very long string, now let's take a look at the php input method. Let's take a look at data/B.
Data/base64
Base64 URL Image CSSThe Data URI scheme is defined in the RFC2397SVG path line width: stroke-widthOnline Base64 encryption/decryption Link:So what is this? This is the data URI scheme.The data URI scheme is defined in RFC2397 to embed some small
Database64 webmasters often use more data. I often see that they generate database64 data for images and then input it. This shows a long string, now let's take a look at the php input method. Data/base64 webmasters often use more data. I often see
How do I get the Base64 string for a picture?1: Use code to get:Run the following codeNewfunction(e) { htmlimage = ' "; // here E.target.result is base64 code }reader.readasdataurl (file); 2: In the WebKit kernel browser has a very
I. BASE64 code ORIGINWhy do you have Base64 code? Because some network transport channels do not support all bytes, such as traditional mail only supports the transmission of visible characters, such as ASCII code control characters can not be
Let's see what Data/base64 is.
What is Data:image/*;base64?
Answer: This is Data URI scheme.Don't you understand?Ps:data URI scheme is defined in RFC2397 to embed some small data directly into a Web page so that you do not have to load it from an
Data URI Scheme. Data URI scheme is defined in RFC2397 to embed some small data directly into a Web page so that no longer has to be loaded from an external file. For example, the above string of characters, in fact, is a small picture, these
The data URI scheme is defined in RFC2397 to embed some small data directly into the Web page without having to load it from an external file.
Advantages: Reduce the number of HTTP connections.
Disadvantage: Files of this format will not be cached
What's the effect of data:image/png;base64
2013-03-27 09:35:57| category:html+css| label:data image/png base6 Role | small subscribe You may have noticed that some images on the Web page have src or CSS background images
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.