Why doesn't this code work in Internet Explorer 9?
function GetFile(FileName) {
var Contents1=null;
var Stream;
Stream = new ActiveXObject("ADODB.Stream")
Stream.Type = 1 //Binary
Stream.Open()
Stream.LoadFromFile(FileName)
Contents1 = Stream.Read()
FileSize = Stream.Size
Stream.Close()
return Contents1;
}
Contents1 = Stream.Read(-1); //-1 adReadAll
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.