将任何文件转换为二进制文件,反之亦然 [英] Convert any file into a binary file and vice versa

查看:169
本文介绍了将任何文件转换为二进制文件,反之亦然的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在StackOverFlow网站和互联网上搜索了这个问题及其相关问题,但是我还没有得到明确的答案。我想知道我可以使用什么软件将任何文件(关于大小)转换成包含这个特定文件的零(仅)和文本文件,然后将这个包含这些零和文本的文本文件转换回原始文件。执行我的无知,如果包含零和文件的文件不被称为二进制文件,我在互联网上搜索和阅读维基百科有软件称为[十六进制转储],我不需要这些,我需要我上面提到的,谢谢大家。

解决方案

事情是,所有的文件已经是二进制的,你只需要任何十六进制查看器他们是正确的,因为它们是。例如,您可以使用Total Commander中的按内容比较)。



计算机世界中没有无二进制文件。

HEX表示



PS#1。有趣的是,在维基百科或其他网站没有真正强调这个问题,我认为这对于那些已经不知道的人来说是完全混淆的,我想他们在计算机文件的定义的第一行应该有二进制的字。

最深层次的计算机文件是二进制数据,而不是一行信息和一些不同的(二进制)格式的信息。文件格式只是一个协议来存储字节和信息,只有当它被某人或某事以可理解的方式被读取或打开时,这就意味着用户或客户端软件知道这个数据(字节)是如何写入的特定的文件。



PS#2。 WTF? - 维基百科已将文件拆分为二进制和非二进制文件!感谢上帝,我不需要读这个。






相反:
Windows
在线


I've searched in StackOverFlow website and over the internet for this question and its relevant questions but I still haven't got a clear answer. I want to know what software may I use to convert any file (regarding size) into a text file that contains zeros and ones (only) of this specific file, then convert this text file that contains these zeros and ones back to the original file. Execuse my ignorance if the files that contains zeros and ones are not called "binary files", I searched the internet and read in wikipedia there are software called [hex dump], I don't need those, I need what I mentioned above, thank you all.

解决方案

The thing is, that all the files are already are binary, you just need any HEX viewer to see them properly, as they are. For instance, you can use "Compare by content" from Total Commander).

There is no-"no binary" files in the computer world.

HEX means base 16 system, you can easily convert it to 2 based (1,0), by using simple windows calculator in Programmer mode:

In the picture below, a text file has been compared by itself, using Binary switch, just to show it's content in HEX way, and first digit is "66", we place it into calculator when HEX mode is activated and then switch to BIN, and have 1100110 - this for letter "f" and so on.

P.S.#1. Interesting thing is that there is no real emphasis on this matter in Wikipedia nor other sites, I think this is totally confusing for people who don't know this already, I think they should have the word binary in the first line of definition of the computer file.

A computer file in its deepest level is binary data, not a piece of information in lines and some different (from binary) formats. The file format is only a protocol to store bytes and information it becomes only when it has been read or opened by someone or something in understandable way, meaning that the user, or client software knows how that data (bytes) has been written in this particular file.

P.S.#2. WTF? - Wikipedia has split files to binary and non-binary! Thank God I don't need to read this.


Software to create text representatives from binary input and vice versa: Windows, Online

这篇关于将任何文件转换为二进制文件,反之亦然的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆