Uses HTML5 File API to read a local file and convert it to base64
jQuery 1.11.0, HTML, CSS, JavaScript
No-Library (pure JS), HTML, CSS, JavaScript