사용하여 FTP 서버에 저장된 이미지 파일을 수정하지만 난 다음과 같은 예외가 점점 오전하는 방법 :읽고 내가 FTP 서버에 저장된 이미지의 thumbanials을 만들고 싶어 자바
javax.imageio.IIOException: Can't read input file!
코드 :
String curr_input_img = null;
BufferedImage original_img = null;
String finalfolderpath = AppConstants.FTP_PATH + path;
String thumbailpath = finalfolderpath + "/thumbnail";
FTPClient client = new FTPClient();
try{
client.connect("188.148.12.58");
client.login("root", "admin123");
boolean result = client.changeWorkingDirectory(finalfolderpath);
FTPFile[] ftpfiles = client.listFiles();
if (result == true) {
client.makeDirectory("thumbnail");
for (FTPFile ftpfile : ftpfiles) {
curr_input_img = ftpfile.getName();
original_img = ImageIO.read(new File(curr_input_img)); // read original image
}
}
catch (Exception ex) {
System.out.println(ex);
}
검사에 공급. URL, 자격증 명 및 네트워크 연결 –
읽기 및 쓰기 권한이 없으므로 .... 읽는 방법은 무엇입니까? –