"chamcha" wrote : too much time? this is a file upload, not a real time application. 
Another point: with a 30MB file upload and memory buffer, how many times the initial 
buffer of 32 bytes must be reallocated? That is quite expensive, I think.

Writing on disk and in memory we are talking about 2 different scales. Plus the buffer 
should double each time, and again 30MB over HTTP is not serious.

"chamcha" wrote : I agree, but http is much simple from the user's point of view.

I don't know cases where a user need to upload more than 2 or 3MB of data. Again, 
otherwise this is dangerous for any web server.

"chamcha" wrote : Why the apache group refused your code?
I didn't submit mine, they refused another code on the same problem, 
http://issues.apache.org/bugzilla/show_bug.cgi?id=24306
this thread is interesting too: (i like that sentence in it: 
"Boss says it has to be delivered via HTTP. Cannot use FTP, no matter how much I beg."
http://forums.java.sun.com/thread.jsp?thread=448639&forum=31&message=2034372

Anyway there is no perfect solution for everybody. It depends also on the purpose of 
the website (ie: if there is lot of uploads, the size of an average upload, the size 
of the maximum upload size...)

For now the new fileupload.jar fixed troubles for people who had some. I don't like 
the way it is but it works, this is not perfect but again this is not a priority.
If you have a great solution that work for anybody, please submit a patch and i will 
be glad to commit it for you.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3847011#3847011

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3847011


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to