Improving upload speed by sending chunk of bytes
I'm developing开发者_如何学JAVA 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.
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.
精彩评论