image - File Transfer via Internet ( using java) -
i've java(swing) application running on server , client(or assume 2 different
computers),these 2 connected through internet not lan or wan..the client has send
some data (around 200 kb) server.which method preferable transferring data..i used
tcp through lan,but it's working slow through internet..so can use udp internet ? if yes, don't
know how divide data chunks , send & again re-assemble data @ server.
i thankful if source code provided udp transfer(bulk data in java).
thanks in advance..
use tcp, want in way better can hope implement on own. if have low bandwidth, transfer in background or wait - there nothing can that.
read data in byte arrays , write them whole - see datainputstream.readfully(). flush output @ end of writing.
edit:if want send multiple images, 1 after other, can video compression - designed efficient @ that.
Comments
Post a Comment