这是我的代码:
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中附加图像文件以通过套接字发送?