avatar
java servlet question# Java - 爪哇娇娃
j*1
1
【 以下文字转载自 Complain 讨论区 】
发信人: mitbbs (未名空间), 信区: Complain
标 题: Re: [投诉]TrustinJesus版主Dignity两天之内狂删我19篇主题帖
发信站: BBS 未名空间站 (Tue Jun 28 02:58:38 2011, 美东)
由于版内炸版,会引起误删。版主可恢复其误删的帖子
avatar
e*n
2
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
avatar
r*s
3
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

avatar
e*n
4
Thanks

【在 r*****s 的大作中提到】
: PrintWriter is only for text, for binary stream, use ServletOutputStream
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。