This content has been marked as final.
Show 1 reply
-
1. RichFaces 4: get temp filename from FileUploadEvent
rocketman2010 Mar 11, 2011 7:52 AM (in response to rocketman2010)Oh, forget it. I was going in the wrong direction...
I simply save the file with an OutputStream and that's it:
UploadedFile item = event.getUploadedFile();
OutputStream out = new FileOutputStream(new File("..."));
out.write(item.getData());