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
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
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
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
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
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
6 matches
Mail list logo