
String str = Base64.getEncoder().encodeToString(Files.readAllBytes(Paths.get(path)));
在保存 base64 字符串的时候缺少了前面那一段信息, 那小段通过什么获取?
1 LGA1150 Jun 10, 2019 这是 MIME Type,可以用 Files.probeContentType(path) |
2 aoscici2000 OP @LGA1150 可以了, 谢谢哈 |