D
dcaveney
Is there any way to replace the "src" attribute of an <img> element
with the name of a file on the client (obtained by a <input
type="file"...> element, for example) in such a way that the page then
displays the client's image. Without uploading the specified file to
the server, is there any way to render the client's image in a page
that originates from a remote server. An attempt that DOESN'T work is:
<body
onload="javascript:document.getElementById('myImage').src='file://c:\\yourImage.jpg';">
<img id="myImage" />
</body>
....but hopefully illustrates what I'm trying to do.
with the name of a file on the client (obtained by a <input
type="file"...> element, for example) in such a way that the page then
displays the client's image. Without uploading the specified file to
the server, is there any way to render the client's image in a page
that originates from a remote server. An attempt that DOESN'T work is:
<body
onload="javascript:document.getElementById('myImage').src='file://c:\\yourImage.jpg';">
<img id="myImage" />
</body>
....but hopefully illustrates what I'm trying to do.