------ Solution ---------------------------------------- ----
should not automatically deleted , but you come for each session , as long as the name is the same , it will be covered .
------ Solution ---------------------------------------- ----
no, you're using jfchar when you can study your own deleted manually. Or by way of written pages flow
------ Solution -------------------------------- ------------
are learning , solving
that you generated in the tomcat directory under which ,
The path is generated picture of how to write ah
------ For reference only ------------------------ ---------------
------ For reference only ---------------------------------- -----
I am also looking for deleted tomcat / temp directory under the file method
------ For reference only --------------- ------------------------
just tried it , you can delete the file.
I need is to generate reports with jfreeChart picture, and then export to Excel , and there I generate a picture with each stream up into Excel , Excel finally available for download with a stream form .
need wound tomcat / temp folder generated files can do:
String filePath = D:/tomcat/temp/
File[] tempFiles = tempFileDir.listFiles();
File tempFileDir = new File(filePath);
for (int i = 0; i < tempFiles.length; i++){
//我生成的图片是*.png格式的
if(tempFiles[i].getName().indexOf(".png") > 0){
tempFiles[i].delete();
}
}
------ For reference only ----------------------------------- ----
jfreeChart generate reports with pictures, and then export to Excel on how to achieve oh.
------ For reference only -------------------------------------- -
jfreechar generated temporary picture delete the program affect you ? jfreechar generated image, how to delete it ?
没有评论:
发表评论