I want to implement an asynchronous file upload for my asp.net application. My idea is to serialize the file into JSON client-side and call a web service to reconstitute the file server-side. My question is:
How do a read a file as binary and serialize it into JSON? The solution can’t require the use of Google Gears or “must-install” client-side technologies. Thanks!
Use an iframe to hide the file upload process. You don’t want to process the data in JavaScript as it will be very slow. All you need to do is manage the user interaction.
Example: http://www.webtoolkit.info/ajax-file-upload.html