Use Base64

After the conversion we get so-called URL-address referring to object, the scheme looks like this: url(“data:image/gif; base64, /SY.....=")
This link consist of MIME-type: image/gif, encoded type: base64, and encoded image to ASCII string.
a) To use images on websites:
- into DOM tree i.e. with HTML in < img src="...encoded string here...">
- into CSS as background: url("...encoded string here...")
b) Sending images to the server for storage and retrieval from databases on the client side;
c) Encoded link can be uploaded to the server with AJAX by passing it to the send() method
d) To work with canvas
e) To work with email-letters
Browser capability
Operation Systems