: This article mainly introduces how base64 works and uses PHP to implement it. if you are interested in the PHP Tutorial, refer to it. Developers must be familiar with Base64 encoding, and it is not necessary to have a clear understanding of it.
developers are sure to be familiar with Base64 coding, and whether or not they have a clear understanding of it is not necessarily. In fact, Base64 is simply no longer easy, and if it's understood or ambiguous, it shouldn't be. About Base64, take a
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
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
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
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
The example of this article is about how to display the PHP image in base64. Share to everyone for your reference, specific as follows:
Here the implementation of the picture as a string saved to the Web page, so that no longer need to load the
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
Base64 is one of the most common encoding methods used to transmit 8-bit code on the network. For details, refer to RFC2045 ~ RFC2049, which has the MIME detailed specification. Base64 encoding can be used to transmit long identification information
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
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.