Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > efficient HTTP upload to servlet from applet?

Reply
Thread Tools

efficient HTTP upload to servlet from applet?

 
 
bugbear
Guest
Posts: n/a
 
      10-07-2004
For reasons that my company deems good, we need
to upload data (quite a lot of data, upto 100 Mb at
a time) from a client web browser to a server.

In order to prevent the user from having
to do lots of file browsing, we're using an applet
to select and transmit the data, to a corresponding
servlet on the (tomcat) server.

But...

it appears that the applet sending data
via java.net.HttpURLConnection is rather slow.
Further, these people (albeit with a clear
axe to grind) state that:

>> The Sun implemention records both the request data and response data into a byte array

http://www.nogoop.com/product_16.html

Which ain't good.

Reading between the lines, it appears that Sun's implementation
was intended to be fairly good at downloading resources for
the Applet to use (e.g. Gifs) and the rest of the functionality
is quite basic.

Just to make joy complete, we need the Applet to
work on MacOs9, which means JDK1.1.8 (AKA MRJ2.2.6)

Does anyone have any magic for me, that will allow
uploads at decent (i.e. close to connection speed)
rates?

BugBear
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sample code for doing a “chunked” webfile HTTP d ownload, andthen stream to HTTP upload to another web app? Greg Hauptmann Ruby 1 12-08-2009 06:37 PM
Re: javax.servlet and javax.servlet.http Lew Java 1 04-25-2007 08:23 PM
javax.servlet and javax.servlet.http Andrew Thompson Java 1 04-25-2007 04:10 PM
Why getInputStream in a http servlet request isn't getting the datasent by browser HTTP POST action? James Java 3 11-25-2005 11:17 PM
Servlet question(Tomcat, web.xml, servlet-class, servlet-name) circuit_breaker Java 2 04-04-2004 03:26 AM



Advertisments