Uploading, saving and displaying images using servlets
posted 6 years ago
I'm seriously new at this, so sorry for missing something that I should have known
I need to be able to upload images, save them to the server's local file system, not as blobs in a database, and then reload these images into pages upon request. To this I intend to store the paths in a db.
I have uploaded images to the server using the apache commons library, and can even save the files to a folder to disk. Now I don't know how to display these images.
Even more fundamentally, is there a specific location I should be saving to where the applets/JSP pages can read it from? How can I specify a location within webapps own directory?
Anyone who can, please do answer in detail, I'm new to JSP and servlets