This commit is contained in:
Looly
2024-11-14 14:10:27 +08:00
parent 9b3709ad45
commit 7bb487419c
17 changed files with 238 additions and 194 deletions

View File

@@ -43,7 +43,7 @@ public class PicTransferTest {
}
private static void save(final ResultSet rs) throws SQLException{
final String destDir = "d:/test/pic";
final String destDir = "d:/test/shape";
final String path = StrUtil.format("{}/{}-{}.jpg", destDir, rs.getString("NAME"), rs.getString("GROUP"));
FileUtil.copy(rs.getBlob("PIC").getBinaryStream(), FileUtil.file(path));
}