Network file transfer

metalstorm metalheadstorm at gmail.com
Wed Oct 12 14:07:48 EDT 2011


Ok, so with client code as:


		System.out.println("buf l: " + buf.array().length);
		FileOutputStream out = new FileOutputStream("fileToSend.txt", true);
		// out.write(buf.array());
		buf.readBytes(out, buf.array().length);

		// close the FileOutputStream once you are done
		out.close();

I get the same number of bytes received as sent it seems, but i get the same
problem above regarding the random '----------' at the start and the 3
missing lines

Note both the file sent and the file received both end in:

123456789
123456789
123456789
123456789
123456789
123456789
123456789
123456789
123456789
--------------------------------

which is correct

--
View this message in context: http://netty-forums-and-mailing-lists.685743.n2.nabble.com/Network-file-transfer-tp6875434p6886084.html
Sent from the Netty User Group mailing list archive at Nabble.com.


More information about the netty-users mailing list