IMG SRC uses base64 image data

Source: Internet
Author: User

IMG SRC uses base64 image data

Displaying a picture on a webpage is usually or

But if we have image base64 data, we can also use Base64 data to display a picture on the webpage;

Format:

The above one is to note the picture format: Image/bmp, where you can use the mainstream picture format jpg,png, etc.

The following Qk32 is the Base64 data for the picture;

BASE64 format data:[][;charset=][;base64],base64 used in CSS. demoimg{background-image:url ("data:image/jpg;base64,/9j/ 4QMZRXhpZgAASUkqAAgAAAAL .... "); }base64 in HTML use 

  

Picture online base64 Data http://imgbase64.duoshitong.com/

IMG SRC uses base64 image data

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.