[jboss-user] [JBoss Seam] - Re: s:fileUpload using tempFile fails with an OutOfMemoryErr

shane.bryzak@jboss.com do-not-reply at jboss.com
Tue Sep 18 21:54:58 EDT 2007


If you're injecting the file data into your component as a byte[] then of course it needs to load the entire file into memory (which kind of defeats the purpose of using a temporary file).  I recommend using an InputStream instead, then you can deal with the file data in smaller chunks.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4085814#4085814

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4085814



More information about the jboss-user mailing list