This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Servlets and the fly likes Rare these two same Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Rare these two same" Watch "Rare these two same" New topic
Author

Rare these two same

sam liya
Ranch Hand

Joined: Nov 25, 2008
Posts: 1240
response.getWriter();

response.getOutputStream()

1) can we use these two stream to write binary data?

2) 1)can we use these two stream to write text data?
Chinmaya Chowdary
Ranch Hand

Joined: Apr 21, 2008
Posts: 432
Hi, Aruna.
Normally streams are used for binary data, writer's are used for text data.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 63052
    
  69

Rare these two same

Please take the time to proof-read your posts for errors.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Rare these two same
 
It's not a secret anymore!