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.
please download richfaces-demo sources to check all needed classes. File is our custom class which was unfortunately not put to sources section at page by mistake :/