I have created ActiveX Control that will convert file into bytes array. I am consuming that activeX in my web application using javascript.In IE8 I am able to get byte array for the file but above IE8 it's giving undefined while returning.
I am posting my javascript code below
function CallFunction() {
var obj = document.Adstringo;
var filepath = document.getElementById("Fileupload1").value;
obj.Source = filepath;
var res = obj.GetFileBytes(); // Call ActiveX Function
}
In res variable I am getting undefined in IE version greater than 8. In IE8 it is working properly.
I have tried changing the data types for the function in activeX.
I have changed from object to byte[]