Saving a PNG file on a server in a Java bean, using JSTL
问题 I am writing an update page in JSTL where the user inputs some numbers. I then call a java bean - passing the numbers as parameters - which, using JFreeChart, creates a PNG image. All of this works fine when I save the file directly on my hard drive using ImageIO.write(myBufferedImage, "png", new File("C:/testChart.png")); I can also save the image to my tomcat directory and view it when I am running the website on my localhost. However, once this code is up on a server that is not my local