How to display local images placed on client machine in HTML webpages hosted on a webserver
I\'m having few images placed in C:/Images folder so path sh
C:/Images
Use the File API which works on all browsers except IE.
A simple example of this would be:
function ShowImage(filepath){ var reader=new FileReader(); // File API object reader.onload=function(event){ document.getElementById('myimage').src = event.target.result; } reader.readAsDataURL(filepath); }