Hi I want to send a fixed amount of data (say 5MB) from server to Android client over TCP using the Java programming language. The data doesn’t matter it will be dropped at the client I am only doing this to do performance measurements on the phone.
Can anyone recommend a good way of accomplishing this? How can I have the server continually sending a large amount of data? Without the intermittent behaviour of reading a line from a file, then sending those bytes… then reading another line and sending those ones.
Ideas? Cheers.
You don’t need to send a file, you could just send a block of data.