1
我有一個servlet將圖像上傳到ftp位置。我能夠將圖像上傳到我的本地主機。但我無法上傳到ftp位置。如何將圖像從servlet上傳到ftp位置?
ImageIO.write(image, "png", new File("D:\\Test.png"));
我有一個servlet將圖像上傳到ftp位置。我能夠將圖像上傳到我的本地主機。但我無法上傳到ftp位置。如何將圖像從servlet上傳到ftp位置?
ImageIO.write(image, "png", new File("D:\\Test.png"));
您需要使用ftp客戶端連接到FTP服務器;有一個在apache commons-net