Re: Huge File upload in struts 2

2009-06-05 Thread Greg Lindholm
ent, offset, > partBuffer.length); > offset += partBuffer.length; > } > > return content; > } > > > > -- > View this message in context: > http://www.nabble.com/Huge-File-upload-in-struts-2-tp23870472p23881060.html > Sent from

Re: Huge File upload in struts 2

2009-06-04 Thread Johnson nickel
int offset = 0; for (byte[] partBuffer : parts) { System.arraycopy(partBuffer, 0, content, offset, partBuffer.length); offset += partBuffer.length; } return content; } -- View this message in context: http://www.nabble.com/Huge-File

Re: Huge File upload in struts 2

2009-06-04 Thread Dave Newton
Martin Gainty wrote: if your OS and container supports sendfile you may want to enable sendfile for static files Isn't that for sending data to the client? IIRC they were talking about uploads. Dave - To unsubscribe, e-mai

RE: Huge File upload in struts 2

2009-06-04 Thread Martin Gainty
esponsabilité pour le contenu fourni. > Date: Thu, 4 Jun 2009 15:05:28 -0400 > Subject: Re: Huge File upload in struts 2 > From: greg.lindh...@gmail.com > To: user@struts.apache.org > > I'm not having any problem with 20mb files using Struts 2.1.6 and the > standard

Re: Huge File upload in struts 2

2009-06-04 Thread Greg Lindholm
ileuploader first > > receives all the data, then writes the entire temporary file, then it's > > read again entirely into memory, then written back to your > > database/filesystem. There's no other built-in appro

Huge File upload in struts 2

2009-06-04 Thread Johnson nickel
gt; > > ----- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > > Quoted from: http://www.nabble.com/Struts-2-File-upload-to-store-the-filedata-tp14168069p14169822.html -- View this message in context: http://www.nabble.com/Huge-File-upload-in-struts-2-tp23870472p23870472.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org