如何在printwriter中附加图像文件以通过套接字发送?

时间:2016-04-30 05:12:54

标签: android sockets printwriter

这是我的代码:

StringBuilder sb_other = new StringBuilder();
sb_other.append(String.format("%-10s%-10s","\t","My text to print"));
sb_other.append("\t\n");
Socket sockKitchen = new Socket("192.168.1.102",9100);
PrintWriter oStream = new PrintWriter(sockKitchen.getOutputStream());
oStream.println(sb_other);
oStream.flush();
oStream.close();
sockKitchen.close();

如何在printwriter中附加图像文件以通过套接字发送?

0 个答案:

没有答案