开发者

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

开发者 https://www.devze.com 2023-04-04 23:09 出处:网络
Why doesn\'t this code work in Internet Explorer 9? funct开发者_如何学JAVAion GetFile(FileName) {

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

精彩评论

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