Data URI, not a URLURL is the abbreviation of uniform resource locator. Each accessible resource in the web has a URL address, such as an image, HTML file, js file, and style sheet file, we can use this address to download this resource.In fact, the
The data URL was presented as early as 1995, when a number of versions of the data URL Schema definition appeared in the VRML , and shortly thereafter, one of the versions was put on the motion-making it an embedded resource placed in the HTML
Data uri, uriData URI
The author positions this article as a practical operation type, so some theoretical foundations are only available until now. First, what is Data URI? Reference Wikipedia's explanation:
Data URI is a solution that allows
Preface (nonsense): this strange line of code was found during the drumming of stylish:
Data:image/gif;BASE64,R0lGODlhEAAQAKEAAEKF9NPi/AAAAAAAACH5BAEAAAIALAAAAAAQABAAAAIkFI6Zpu0YYnxnAvtC0hTzzH3UJY6kSUqdiCltu7GjBKMKgwoFADs=
Because I have a little
Data URI scheme allows us to include data in a webpage using inline-code, which can be used in Html, CSS, and Javascript.
Data URI scheme is often used to embed images into webpages. It is used as follows:
The data URI scheme format is as
There are two ways to upload images. One is to use the traditional HTML control and set the form attribute to multipart/form-data. This method is compatible with IE6 and IE7. Another method is to use data: URI to post the base64 encoding from the
First, prefaceIn Friday, the company's internal any Topic Conf. I shared this topic with my colleagues, some colleagues said this useful, some colleagues said this is useless, and later extended to the topic of website performance, we discuss the
Converts a picture resource to a Base64 string format embedded in a page or style. So even the picture of the request link is saved.
Such as:
How to use
CSS code copy content to clipboard
/** Data Format **/
Image upload Preview is a technique for previewing images locally before uploading them.Enables users to view pictures immediately after they select them without uploading the server to improve the user experience.But as the security of the browser
ASP tutorial. net file picture upload with preview effect
The picture preview consists of two parts: get the image data from the file Form control, and display the preview image according to the data.The File and IMG properties of the program are
The combination of DataURI and MHTML can completely solve all mainstream browsers. They are not suitable for use directly on pages because they cannot be cached or reused, however, the proper use of images in CSS and JavaScript files has a great
Data: [] [; base64],
The format is relatively simple. We can see that the above is a base64 encoded jpg image.Embedded in this page, the following is displayed:
According to the above format, we can write a small program to generate, but we
For example:
Ivborw0kggoaaaansuheugaaabaaaaaqmaaaalpw0iaaaablbmveuaaad/// + L2Z/dAAAAM0lEQVR4nGP4/5/h/1 + G/58ZDrAz3D/McH8yw83NDDeNGe4UG9c9zwz1_vlmda/A6P9/AFGGFyjOXZtQAAAAAElFTkSuQmCC "/>
This will display an image, which is generally supported
Action_all_apps: Open an activity that lists all installed applications. Typically, this operation is also handled by the initiator.
Action_answer: Open an activity that handles incoming calls, which is usually handled by the local phone dialer.
What is Intent? Let's take a look at the definition on the Android Official Website:
An intent is an abstractdescription of an operation to be performed med. it can be used with startActivity tolaunch an Activity, broadcastIntent tosend it to any
JavaScript file processing: File Reading and javascript file processing
In my previous blog, I introduced how to use files in JavaScript, focusing on how to obtain File objects. Only when a user uploads a file by uploading or dragging it, these
This document describes how to perform a phishing attack by stealing a facebook login account. The process is very simple. It mainly involves two steps to create a phishing page, which is similar to the phishing page of The phishing URI and other
XSS, also known as Cross site Scripting, is the focus of XSS not across sites, but in the execution of scripts. With the development of Web front-end applications, XSS vulnerabilities are especially easy to be overlooked by developers and can
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.