How do i add a local path to the image. I Tried this
var file = new File("c:/documents and settings/downloads/image.jpg");
var reader = new FileReader();
reader.onloadend = function () {
console.log(reader.result);
}
reader.readAsDataURL(file);
Gives an NS error.