先转一次byte数组 再处理
byte[] bigContent =file.getBytes();
Thumbnails.of(new ByteArrayInputStream(bigContent)).scale(1f).outputQuality(0.3f).toFile(fileThu);
这里fileThu直接使用文件路径比较好
先转一次byte数组 再处理
byte[] bigContent =file.getBytes();
Thumbnails.of(new ByteArrayInputStream(bigContent)).scale(1f).outputQuality(0.3f).toFile(fileThu);
这里fileThu直接使用文件路径比较好