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

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -