I'm developing an android video uploading app and uploading large amounts of video is a problem, I get different type of exception sometimes (host not resolved, pipe broken), I do a multipart POST but I have a feeling if I upload chunk of bytes one at at time that'll increase upload speed as well as solve connection timeout and these type of problems.
A:
If you have control of the server, think about using raw TCP/IP via sockets instead of http: http adds considerable overhead. In some circumstances, going down to the udp layer instead can improve performance even further: but be aware of the complexity of ensuring delivery and sequencing yourself.
Pontus Gagge
2010-09-22 20:24:00