MineMarkPT
Forum Addict
Im looking to write a java program, well two really, which provide the ability to transfer files using UDP protocol. This is for a school project so don't go on about UDP not being safe blabla, i know that.
So far I've came up with code enough to transfer strings and java objects from the client to the sever without any problems, however I cannot seem to be able to write code for transfering files. This can be any type of file.
I know that I am supposed to get a File object and then convert it to a byte array, but thats all I know so far.
Can anyone give me a hand on this? I can provide the code I have so far.
BTW: All answers on chrome seem either fishy or out of proportion to what I want.
So far I've came up with code enough to transfer strings and java objects from the client to the sever without any problems, however I cannot seem to be able to write code for transfering files. This can be any type of file.
I know that I am supposed to get a File object and then convert it to a byte array, but thats all I know so far.
Can anyone give me a hand on this? I can provide the code I have so far.
BTW: All answers on chrome seem either fishy or out of proportion to what I want.














