Ths is a great example...Thanks for all the hard work... Can you show me an example of what do with the uploaded file? How and where can I write it out?
Thanks Phil public String fmWelcome() { FacesContext context = FacesContext.getCurrentInstance(); HttpSession session = (HttpSession) context.getExternalContext().getSession(false); try { InputStream stream = theFile.getInputStream(); long fSize = theFile.getSize(); byte [] buffer = new byte[(int)fSize]; stream.read(buffer, 0, (int)fSize); stream.close(); } catch (Exception ioe) { ioe.printStackTrace(); } return "success"; } -- View this message in context: http://www.nabble.com/Tomahawk-1.1.3-inputFileUpload-solution-tf2318350.html#a7192432 Sent from the MyFaces - Users mailing list archive at Nabble.com.