Can I download a user's profile photo and upload it using JavaScript Client Library??
A:
If you want to just retrieve the file then you are best off just using an img tag and changing where it points to, but, if you want to access the hard drive of the user, it really depends on how limited of browser support you want.
You may want to look at DOM Storage though.
These links may help: http://msdn.microsoft.com/en-us/library/cc197062(v=VS.85).aspx
https://developer.mozilla.org/en/DOM/Storage#localStorage
In Firefox 3.6 they added a File API: https://developer.mozilla.org/en/Using_files_from_web_applications
James Black
2010-06-08 10:24:03