Why can't I do <img src="C:/localfile.jpg">?
Solution 1:
It would be a security vulnerability if the client could request local file system files and then use JavaScript to figure out what's in them.
The only way around this is to build an extension in a browser. Firefox extensions and IE extensions can access local resources. Chrome is much more restrictive.
Solution 2:
shouldn't you use "file://C:/localfile.jpg" instead of "C:/localfile.jpg"?