📌 📄 内容摘要:
鹏 (@peng214) 在 java如何解2G以上的文件 中发帖
下面代码解2G一下的没问题,2G以上的就不行了。如何修改可以支持2G以上的呢?
private static final int CACHE_SIZE = 1024 * 1024 * 10;
public static void main(String args) throws IOException {
String filePath = “~/IncallUpgrade/HuOs/update.zip”;
byte key = new byte{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
byte iv = new byte{1, 0, 0, 0, 0, 0, 6, 0, 0, 0, 3, 0, 0, 4, 0, 0};
AES aes = new AES(Mode.CBC, Padding.PKCS5Padding, ...
────────── 链接信息 ────────── 🔗 论坛链接: linux.do 📎 访问地址: https://linux.do/t/topic/437107/1 ─────────────────────────────
📢 来源:LINUX DO