????c)????????????????????

outWriter.println(strInfo);
outWriter.flush();

????d)?????????????????

// ???????????
File file = new File(filePath);
byte[] outBytes = new byte[1024];
int count = 0;
FileInputStream fileInput = new FileInputStream(file);
ByteArrayOutputStream ow = new ByteArrayOutputStream();
while ((count = fileInput.read(outBytes)) > 0) {
MyLogManager.DebugLog(log?? null?? String.valueOf(count));
ow.write(outBytes?? 0?? count);
}
outPut.write(ow.toByteArray());
//outWriter.print(ow);//?????JAVA???????????????????????C#???????????????
//outWriter.flush();

?????????????????java??c#?????汾??

????1).???????????????????????

????????JAVA???????????PrintWrite???println()???????ɡ?

??????????C#???????????socket.Send(System.Text.Encoding.ASCII.GetBytes(msg + " "))??????????????msg???????????н??????????

????2).?????????????????????

????2-1).java????????????

????a)java?????????????????

******???????*****
log.info("????????????");
InetAddress address = InetAddress.getByName(AppConfig.IP);//193.100.100.143);
SocketChannel sc = SocketChannel.open(new InetSocketAddress(address??AppConfig.PORT));
log.info("????????????");
//?????? ???????
InputStream inputStream = Channels.newInputStream(sc);
InputStreamReader is = new InputStreamReader(inputStream??"GBK");
in = new BufferedReader(is);
log.info("???????????????");
String responseLine="";
while ((responseLine = in.readLine()) != null)
{
//??readLine???????????????????????з???????????????????????????????????????б????
returnStr += responseLine+" ";
}
log.info("??????????????????");
**************