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,040,783
  • 362
  • 3,548
  • 3,513
Malki Mohamed
  • 1,223
  • 1
  • 19
  • 35

0 Answers0