loading an image through javascript

Posted by scatman on Stack Overflow See other posts from Stack Overflow or by scatman
Published on 2010-05-21T12:49:26Z Indexed on 2010/05/21 12:50 UTC
Read the original article Hit count: 110

Filed under:
|
|

is there a way to load the full binary of an image in javascript?
what i want to do is to allow the user to preview an image before uploading it.
ie the user selects an image on his local drive (C:\image.jpg) , view it, and decides to upload or cancel.
i tried to set the source to the image path, but it didn't work since it is outside the webapplication project folder.
any help?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about asp