3 Replies Latest reply on Jul 4, 2006 1:01 AM by Norman Richards

    How to access files from seam code

    Amir Shay Newbie


      I want to be able to access files on my server (HTTP/FTP). Currently I am using the following command to read a file

      InputStream stream = Resources.getResourceAsStream("/WEB-INF/" + fileName);

      The thing is, the WEB-INF/ is under the ear file, so each time I want to add new file I need to re build the ear?

      I want to be able to read files from the local apache (http) or FTP directory