I have installed a Tomcat7 server on Amazon EC2. One of my Servlets receive a "file" as a multipart post. I need to store this files in a directory structure and later the file will be retrived by another servlet and send to a client and deleted from the Amazon Web Services.
My Question Where and how should I store these file and how should I create a directory structure using Servlets.
I am looking at
- Quickest possible access to the file.
- Store of the file is need as long as it is not send to the client.