Skip to content

Instantly share code, notes, and snippets.

View roman-m-work's full-sized avatar

Roman M roman-m-work

  • Israel
View GitHub Profile
@roman-m-work
roman-m-work / example.html
Last active November 27, 2019 19:21 — forked from bbg/example.html
jQuery upload image take the base64 code
<!DOCTYPE html>
<html>
<head>
<meta charset="utf8">
<title>Online Base64 encoder</title>
<script type="text/javascript" src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<script type="text/javascript">
function readURL(input) {
if (input.files && input.files[0]) {
var reader = new FileReader();