View Single Post
Old 09-09-07, 04:44 PM   #1
Official pain in the ass
Tuork's Avatar
Join Date: May 2003
Posts: 1,197
Send a message via MSN to Tuork
Default How to split a file into packets.

Hello everyone.
I have a networking assignment in which I have to transfer a file in groups of 8 256byte-packages, using JAVA.

Anyone know how I can break the file into the packages so I can send them through a socket connection?

Moreso, anyone have any ideas on how to implement a buffer on the serverside?

Any help is greatly appreciated.
My avatar: "An obscure and non sensical pattern made to get people to post what they think it is" - Vamp

Dell XPS M1530
Core2Duo T5550 1.86Ghz | 3GB DDR2 | 8600M GT 256MB | 250GB Hdd | BenQ FP202W 20" LCD | MX1000 mouse | Inspire T5400 5.1
Tuork is offline   Reply With Quote