对任何二进制文件操作你可以通过dephi或者vc来做到。用js我还没有听说过!

解决方案 »

  1.   

    according to
    The Wonders of the File System Object 
    http://www.15seconds.com/issue/000816.htm"............
    The FSO does have some weaknesses - for instance, it stumbles on binary files. This includes MS Word documents, many image formats, and, unfortunately, a lot of other files. You can still, however otherwise manipulate these files - move them, delete them, etc. What you can't do is open, read, or write to them. Given some ingenuity, a method could be devised to use the FSO to play with binary files, but many will find it easier to simply use the old Open method (check out MSDN for an example). 
    ....."you might want to play with ADODB.Stream object
      

  2.   

    http://www.blueidea.com/bbs/archivecontent.asp?id=367658
      

  3.   

    这样还是不太好用,adodb.stream的确可以用loadFromFile()/saveToFile()/read()/write()实现对二进制文件的操作,可read方法的返回值在js中不可以操作?除了可以按字节取出需要的内容外,不能转为字符串/数字或其它对象,不能进行连接、位操作等:(
    这样还有什么意义呢
      

  4.   

    vbs的二进制操作比js的强,呵呵