[jboss-user] [EJB 3.0] - Re: How to deal with huge uploaded file in JBoss
PeterJ
do-not-reply at jboss.com
Wed May 13 11:03:00 EDT 2009
Is there a way to to transfer the file in chunks? For example, transfer 1MB, handle that 1MB in the EJB, and then transfer the next 1MB. This would avoid having to have the entire huge file in memory at one time.
The only other thing I can think of is to ftp the file to the server and have the server open the file there.
By the way, most likely the file is in memory twice - once in its serialized state, and once in its object state. Any other "copies" are probably references to the object state. But the serialized state could use twice the memory room of the object state.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4230873#4230873
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4230873
More information about the jboss-user
mailing list