且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

将Word文档转换为二进制格式,反之亦然

更新时间:2022-12-07 17:32:25

我怀疑那不是您真正想要的.

您的Word文档(实际上是所有文档和其他文件)已经存储为二进制位序列:这就是所有底层介质(硬盘或ram)都可以理解.

因此,尝试将您的文档转换为二进制格式根本不需要任何工作-它已经存在.不幸的是,不需要进行任何其他转换:Word文件的文档"视图不是文件内容固有的,它是应用于Word程序从磁盘读取的数据的理解"层.如果没有某些软件来处理文件并以与字母或手册相关联的格式呈现文件,则该文档不能作为Word文档完成.

您想达到什么目的,以为这会对您有所帮助?
That''s not really what you want, I suspect.

Your Word documents (and indeed all documents and other files) are already stored as binary bit sequences: that is all the underlying medium - the hard disk, or ram - understands.

So trying to convert your document to binary format requires no work at all - it is already there. Unfortunately, no work is required to convert it the other way either: the "document" view of a Word file is not intrinsic to the file content, it is a layer of "understanding" applied to the data the Word program reads from the disk. The document is not complete as a Word document without some software to process the file and render it in a form you associate with a letter, or a manual.

What are you trying to achieve, that you think this will help you?