Kari - embeded as base64 :) |
Look at the image on the left. It's embedded. The idea is very simple.
Open some image file.
Read it in a string.
Encode it with base64.
Now you can use the result as src in the img tag. This image can be used in html email messages or can be used in the css.
png_file = open('applets-screenshooter.png','rb') png_txt = png_file.read() png_img = png_txt.encode('base64')
Look at the result
If you have any ideas on how to use such images, please share in the comments.
In next link is shown the RFC of using embed images, and not only images
ReplyDeletehttp://www.faqs.org/rfcs/rfc2397.html
The RFC is too old. But here you can find some information about Data URI scheme.
ReplyDeleteAlso look at this site. Here you can find out on which browser this will work.
ReplyDeletenice share, thank you
ReplyDelete