e**n 发帖数: 10 | 1 When I open an ASCII text file, I set content type as "text/plain" and
everything is ok. But when I tried to open a binary file, it does not work
properly. The Writer looks like only handling characters.
How can I open a binary text file in my servlet code?
Thanks | r*****s 发帖数: 985 | 2 PrintWriter is only for text, for binary stream, use ServletOutputStream
【在 e**n 的大作中提到】 : When I open an ASCII text file, I set content type as "text/plain" and : everything is ok. But when I tried to open a binary file, it does not work : properly. The Writer looks like only handling characters. : How can I open a binary text file in my servlet code? : Thanks
| e**n 发帖数: 10 | 3 Thanks
【在 r*****s 的大作中提到】 : PrintWriter is only for text, for binary stream, use ServletOutputStream
|
|