Suppose, I have a web application deployed. The application uses a map service, to generate new maps for each request. Can the map service, write its output to a directory (Say it "output") which is parallel to WEB-INF ?
Will that (output dir) be not writable? If yes, is there any way to show the dynamically generated map (the jpg files), in the application using some url ?
>Can the map service, write its output to a directory (Say it "output") which is parallel to WEB-INF ?
Will that (output dir) be not writable?
That depends upon the server setup. You need to grant permissions so that your server can write to that directory.
You could also just send the requested image to the client without saving it to disk. Either way, to load an image onto the page, you use the <img> tag as normal in HTML. <img src="<%= imageFileName %>"> or <img src="ImageServlet?imageid=42">
Using a Servlet to send the image back via an output stream is a good option. Cheers, evnafets
Joined: Sep 16, 2003
I had tried yesterday, to change the permission on the server and it worked.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: Writing dynamically inside the web application