我们共享平台有个统计功能,可以生成 饼图,现在需要加一个功能点,每次用户查询后生成的饼图 都要保存在服务器硬盘中,以便我们读取
 真诚请教大虾们,提些思路与建议

解决方案 »

  1.   

    我搞定了,其实在jfreechar当中 有这个方法  try {    
                fileName = ServletUtilities.saveChartAsPNG    
                
    (chart, 720, 540, info,    
                        session);// 生成图片,放到服务器 的临时文件夹下    
                // Write the image map to the PrintWriter    
                ChartUtilities.writeImageMap(pw, fileName,     
       
    info, false);    
            } catch (IOException e) {    
                e.printStackTrace();    
            }    
      

  2.   

    有存储为图片的方法。
    楼主找到的是saveChartAsPNG。
    我以前用的是saveChartAsJPG。