ie
url = document.getElementById(sourceId).value;
chrome
url = window.URL.createObjectURL(document.getElementById(sourceId).files.item(0));
img.src=url;
ie
url = document.getElementById(sourceId).value;
chrome
url = window.URL.createObjectURL(document.getElementById(sourceId).files.item(0));
img.src=url;