Can I use Java2D to generate dynamic images from my servlet (or other server-side Java application)?
Certainly! Java2D isn’t just for desktop applications. You can use the Java2D API to dynamically generate images in your server application, and then use the Image I/O API to write the image to a File or to an OutputStream (so that it can be viewed in a browser). For example, you can generate a weather map using real-time weather data, or create a pie chart using data from your accounting database.
Related Questions
- Why does my application sometimes receive a NativeSeqFile error when using JRIO and the Remote Method Invocation (RMI) - Java Remote Method Protocol (JRMP) to access MVS datasets?
- Which license do I need if I want to do vector annotation on raster/vector images manipulating and viewing it in my application. Do I need only THBVector?
- Do I need a Java Application Server or Servlet Engine?