
tmp file but after it isn't "convert" to the file that I want! The problem is that into the folder the application create a. OutputStream out = new FileOutputStream(new File(fileName))


InputStream in = uploadedFile.getInputStream() Here it is my code: String fileName = "D:/upload/file.zip" //- this is an example, in my real code it is dynamic

Now, I know that the class FileUploaded creates a temp file so I would convert it into a real file using java.io.File. I'm using PrimeFaces 3.2 and I should store a file on filesystem.
