ActiveX controls will only work in Internet Explorer on Windows, and only if the user allows your site to download the control, and to script ActiveX controls not marked as "safe for scripting".
(Your control is NOT marked as "safe for scripting", is it? Because it's not - it allows a website to read the content of any file on the user's computer, and that is most definitely not "safe".)
Unless you're creating an internal "intranet" site, where you control all of the computers which will access your site, you should avoid using ActiveX controls at all costs.
There is
a native file API[
^] which works
in most browsers[
^], including IE10 and above.
function CallFunction() {
var file = document.getElementById("Fileupload1").files[0];
var reader = new FileReader();
reader.onload = function(e){
var fileBytes = e.target.result;
};
reader.readAsArrayBuffer(file);
}
NB: As of 12th January 2016, only the most current version of Internet Explorer available for a supported operating system receives technical support and security updates. IE8 is no longer supported on the desktop. IE9 is only supported on Vista and Windows Server 2008 / 2008 R2.
Lifecycle support policy FAQ - Internet Explorer[
^]