IOUtils.copy(in, out);out.flush();//...........out.close(); // depends on your application
哪里
in是的FileInputStream和
out是
SocketOutputStream。
IOUtils是Apache
Commons中Commons
IO模块的实用程序。

IOUtils.copy(in, out);out.flush();//...........out.close(); // depends on your application
哪里
in是的FileInputStream和
out是
SocketOutputStream。