Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

spring boot save file to static folder

String fileLocation = new File("srcmain
esourcesstaticuploads").getAbsolutePath() + "" + fileName;

		FileOutputStream output = new FileOutputStream(fileLocation);

		output.write(imagem.getBytes());

		output.close();
 
PREVIOUS NEXT
Tagged: #spring #boot #save #file #static #folder
ADD COMMENT
Topic
Name
1+5 =