1. Connect client to server
2. From server, read size of file and send that to client as int
3. At client, read the first int available, use that as the size expected
4. At server, read entire file into a bank
5. At server, use writebytes() to send that bank through the stream
6. at client, keep reading in bytes until you have reached the predetermined size you were expecting (the first int you read).
There you have it
2. From server, read size of file and send that to client as int
3. At client, read the first int available, use that as the size expected
4. At server, read entire file into a bank
5. At server, use writebytes() to send that bank through the stream
6. at client, keep reading in bytes until you have reached the predetermined size you were expecting (the first int you read).
There you have it