My Javascript code that is run in client-side needs to read a binary file that is stored in the server. How can I do it for all browsers?
I have found solutions with ActiveXObject – FileSystemObject that are only working in Internet Explorer.
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You would then use getBinaryData to get the file. with asynchronous, it will call the callback with arguments the xhr object itself (you would read the responseText property), and whether it was successful. Synchronously, it returns the binary data.