1 Reply Latest reply on Jun 25, 2010 2:56 AM by liumin hu

    How to get absolute file path on server?

    Peter Len Apprentice



      I am using the rich:fileUpload  component to upload a file.  I have my upload listener in my backing bean.  All works as intended and I have the contents of the uploaded file in a byte[] array.  For the time being I need to store the contents in a file on the server.  For example, within the view/img directory of my SEAM application.  How can I get the absolute path for a directory within my SEAM application?  or even just the absolute path to the application's web context root?


      Any thoughts would be of great help.


      Thanks - Peter