首页 > 解决方案 > Binary to it's original format

问题描述

Is there any possible way to determine the original format of a binary file?

If No, then we are on the same page, but if yes, then how? What makes a binary format file of pdf different with binary format of a txt file?

Also, can we convert a binary file into it's original format without knowing it's original format?

Kindly help. Thank you!

标签: javascriptjavapythonfilefile-conversion

解决方案


最终,每个文件都只是一个字节流。决定文件类型的是程序如何尝试解析和使用它(当然也有一些共同的协议)。

某些文件是在其中创建的带有魔术字符串的,可帮助程序快速检查(但实际上不检查,因为文件的其余部分可能已损坏)如果文件属于某种类型,您可以在此处查看一些示例:https:// en.wikipedia.org/wiki/List_of_file_signatures


推荐阅读