1 Reply Latest reply on Sep 4, 2009 4:43 AM by Ilya Shaikovsky

    can't make the rich:fileUpload example work

    Alejandro Peña Newbie

      I'm trying to make a file uploader to a web app, i need to upload Excel files and after store them on an Oracle directory (not table).

      I was checking the example on

      http://livedemo.exadel.com/richfaces-demo/richfaces/fileUpload.jsf

      and when y tried to make the sources work i could find what was the class of the File referenced in the example.

      File file = new File();
      file.setLength(item.getData().length);
      file.setName(item.getFileName());
      file.setData(item.getData());

      There is no import for this class, and if i take the java.io.File
      just can't set the attributes...

      Please somebody help me.

      Anyway if you can suggest a way to save the files i'd really apreciate it.