• Log in or sign up for an account here: https://www.sythe.org/login

Reported Post by Blupig

Status
Not open for further replies.

Blupig

BEEF TOILET

$5 USD Donor
Joined
Nov 23, 2006
Sythe Gold
1,609
Messages
7,145
Age
33
Location
Canada
Valentine's Singing Competition Winner
Sythe Awards 2015 Winner
Sythe Awards 2016 Winner
Sythe Awards 2020 Winner
Member of the Month Winner
MushyMuncher
Gohan has AIDS
Extreme Homosex
World War 3
I'm LAAAAAAAME
Discord Verified
Off Topic Participant
Blupig has reported a post.

Reason:
Post: Basic Java
Forum: Programming General
Assigned Moderators: Amethyst, yaroow

Posted by: MineMarkPT
Original Content:
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.
 
Status
Not open for further replies.
Runescape Gamblingrunescape gambling
Back
Top