Live Life King Size
Live Life King Size
ronney singh wrote:If I store images in the database that would be more appropriate?
Please tell me how to find the http URL of file.
In the latter case, there is no URL as the image files are not part of the web application. In this case, one way to deal with this is that a servlet is written that knows how to find the image file (which could be identified via a request or path parameter) and to read it from the file system, and then stream it to the response, setting the appropriate headers to identify it as an image.
Live Life King Size
Live Life King Size
ronney singh wrote:I am using WebSphere so there would be different way for that other than Tomcat to get the url of image file if I am going to store them in Web Application.
ronney singh wrote:Please tell me the code for storing images outside the web application.
I have read some posts about that but in all of them Tomcat is used and change is made in server.xml But
I am using WebSphere 7.0 so please help me with some code and changes to be made for that.