spring boot save file to static folder

Solutions on MaxInterview for spring boot save file to static folder by the best coders in the world

showing results for - "spring boot save file to static folder"
Sebastien
18 Apr 2018
1String fileLocation = new File("src\\main\\resources\\static\\uploads").getAbsolutePath() + "\\" + fileName;
2
3		FileOutputStream output = new FileOutputStream(fileLocation);
4
5		output.write(imagem.getBytes());
6
7		output.close();