开发者

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

Why doesn't this code work in Internet Explorer 9?

funct开发者_如何学JAVAion 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
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜