Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个文件转换为二进制字符串(示例)String = "101001010101",我需要这个来将此字符串写入文件。
String = "101001010101"
我得到这个二进制字符串:
File -> byte[] -> FileInputStream -> String
如何将其转换回文件?
使用FileUtilscommons-io 中的类。这将帮助您进行此类操作。
FileUtils