0

I want to save an article image in a folder name "textures" of my WAR, I am trying with this script :

String filePath = "http://localhost:8080/mbshop/tpl/img/textures";  
System.out.println("Image Location 2:" + filePath);//see the server console for actual location  
File fileToCreate = new File(filePath, this.articleImageFileName);  
FileUtils.copyFile(this.articleImage, fileToCreate);//copying image in the new file  

when I used that link it work

String filePath = "D:/images/";

but me I in want to save it in the deploy folder,please someone help me

BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
Malki Mohamed
  • 1,578
  • 2
  • 23
  • 40

0 Answers0