简体   繁体   English

为什么ADODB.STREAM在Internet Explorer 9中不起作用?

[英]Why does ADODB.STREAM not work in Internet Explorer 9?

Why doesn't this code work in Internet Explorer 9? 为什么此代码在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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 用Javascript和ADODB.Stream编写二进制文件 - Write binary file with Javascript and ADODB.Stream 为什么此Javascript可在Firefox中运行,但不能在Internet Explorer中运行? - Why does this Javascript work in Firefox, but not Internet Explorer? 为什么我的切换在Internet Explorer中不起作用? - Why does my toggle not work in Internet Explorer? 使用Javascript中的ADODB.Stream访问附件文件的内容 - Access attached file content using ADODB.Stream in Javascript 为什么我的代码在本地主机上的Internet Explorer版本8上不能在服务器上运行,而在Internet Explorer版本10上却不能运行 - Why does my Code work on Internet explorer version 8 on localhost not on server, but not on internet explorer version 10 为什么我的JavaScript函数在Internet Explorer中不起作用 - Why does my javascript function not work in Internet explorer 为什么这个排序下拉列表在Internet Explorer中工作但在Chrome中没有? - Why does this dropdown list for sorting work in Internet Explorer but not in Chrome? 为什么此页面上的jQuery适用于Internet Explorer 8,但没有其他内容? - Why does the jQuery on this page work for Internet Explorer 8, but nothing else? 在键入时显示文本-为什么在Internet Explorer中不起作用 - Making text appear while typing - why does this not work in Internet Explorer 为什么每个浏览器在Internet Explorer中都不起作用,还有什么替代方法? - Why does for each not work in Internet Explorer and what is the alternative?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM