Hi all I have searched many forums and came to know that we can not load a file locally from local drive, but I got a requirement where I need to display the images from the local drive. I will have my image path saved in my database from that path I need to load and show the image this is what I have written
<img data-bind="attr: { src: loadImage() }" />
<script type="text/javascript">
function loadImage() {
return "D:/SampleFolder/SampleFile.jpg"; // this is what I will get from my database
}
</script>
so can some one tell me how can I do this using javascript