且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在JAVA中创建HTTP响应发送图像?

更新时间:2022-03-06 22:41:33

您必须同时使用流:输入流和输出流.读者和作家假定内容为Unicode,并对字节流进行调整.当然,PrintWriter是作家.

You must use streams on both sides: input stream and output stream. Readers and writers assume the content is Unicode and make adjustments to the byte stream. PrintWriter is, of course, a writer.