Re: Huge File upload in struts 2

2009-06-05 Thread Greg Lindholm
How big is your test file? How much memory does your JVM have ? Print out Runtime.getRuntime().maxMemory() / (1024*1024) to get the Mb. Since you are reading from a file, here is a simpler method to load the contents of a file into a byte array: /** * Load a file into a byte array.

Re: Huge File upload in struts 2

2009-06-04 Thread Johnson nickel
Hi, I have problem with this readInputStream method. I have checked in (postgresql)database, which i used column data type is bytea its default column size 1gb data. I will explain my problem clearly, Step1 : I checked in java file itself, public static void main(Strin

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
I'm not having any problem with 20mb files using Struts 2.1.6 and the standard fileUpload interceptor. >From what I see, Sir Evans is warning you that loading the entire file into memory may be a problem if your files are very large. Nowadays 10mb is not really that large. If you want to put 10mb