阅读背景:

通过ftp协议在套接字上传输文件

来源:互联网 

I have a problem to send a file(not necessarily a txt file) over a socket.I have 2 classes:Server,Client.When I read from a socket output stream and want to write the bytes in a file,it looks working but when i open the file it has nothing.(corrupted showing the size=0 kb).I also want it to transfer all kind of file over a socket.I don't want to use appache commons net. Here is my code Server classI have a problem to send a file(not necessarily




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: