multiple sources download

Alessandro Brawerman

Greenhorn

Posts: 22

posted 12 years ago

Is it possible to download pieces of the same file from different sources using J2ME? Can several socket connections be openned at the same time to different hosts? The thing is I want to increase the performance of my application when downloading files either through sockets or URLConnections and I thought that downloading pieces of the same file from different hosts would be a good idea. Is there a way to do it? How? Thanks, Alessandro.

Lasse Koskela

author
Sheriff

Posts: 11962

5

posted 12 years ago

I'd say it's highly probable that your mobile's connection speed is the bottleneck, not the bandwidth of the server. If this is the case (and assuming that you need the whole file downloaded until you can do anything useful), using two or more simultaneous connections to download the same fixed number of bytes per second does not make sense to me.