2016-12-30 126 views
-3

我正在做一個汽車維修中心的項目。在這個項目中,我需要上傳受損車輛的照片,以便員工稍後觀看。在java中上傳多個圖像到mysql數據庫gui

JFileChooser chooser = new JFileChooser(); 
chooser.showOpenDialog(null); 
File f = chooser.getSelectedFile(); 
String filePath = f.getAbsolutePath(); 
path.setText(filePath); 
File imgFile = new File(filePath); 

try { 
    FileInputStream fin = new FileInputStream(imgFile); 

上面我試過,但我可以選擇在同一時間只有一張照片,像這樣:

like this

我需要這幾樣細

DDDDD

+0

做ü希望每次 –

+0

是選擇多個圖像並將其添加到mysql數據庫 –

回答