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

问题描述:

你好,...

我是代码项目的新手,想问问题.但是在很多情况下,这对我有很大帮助.所以首先我想对你说声



现在,我陷入困境.请帮助我.在我的项目中,通常使用2个模块,一个是编码器,另一个是解码器.
编码器会将源数据(例如Word文档文件)编码为二进制序列(仅0和1的组合,不能使用任何其他格式),然后解码器会将其转换回原始格式. \您向anyboby发送给我这样的带有源代码的项目类型.

真诚的,asok kumar

hello,.,.

I am new to the code project,in asking questions for the problems.But in many occasions,this would helped me a lot. So first of all i wishto say thnkz you.



Now iam in a trouble. plz help me..In my project ,iam using 2 modules ,one is encoder and another decoder.
The encoder will encode the source data(say.Ms Word document file) to binary series(only combination of 0''s and 1''s,no any other format ) and decoder will convert it into original back.please i request t\you to anyboby send me such a type of project with source code.

Sincerly , asok kumar

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

您的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?