Jacob Hookom wrote:
> Remy Maucherat wrote:
> 
>>Are you actualy using a POST with a URL FORM encoding ? In which case,
> 
> 
>>sorry, but it's a really bad idea to do that."
> 
> 
> Are there alternatives?  The goal of this process is to ease image
> transfer to a publishing server by people who haven't a clue on how to
> utilize ftp, or their mail servers do not permit large file attachments.

Many alternatives.
The problem is that when you do the form decoding you allocate an array 
of the same size as the data (since you have to keep the decoded bytes 
somewhere, right). So here, it's 50M * number of simultaneous uploads = 
you're possibly in trouble.

Instead, you can use either a POST without the FORM encoding, or a PUT. 
 From a browser, the first solution looks better.

> My implementation is the same as the upload example included with the
> struts-upload.war.  File transfers of 141MB will crash the VM at 114MB
> for example.  So the file is reaching the server and midway through
> 'storing it', but crashes the VM midway through.
> 
> The only thing I notice is that the Coyote connector throws
> java.io.CharConversionException: isHexDigit

Any line numbers ?

Remy


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to