permaculture playing cards*
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Rare these two same" Watch "Rare these two same" New topic
Author

Rare these two same

sam liyanage
Ranch Hand

Joined: Nov 25, 2008
Posts: 1070
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: 60752
    
  65

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]
 
Don't get me started about those stupid light bulbs.
 
subject: Rare these two same
 
Similar Threads
Byte streams
XML data transfer?
File Input and Output Streams
Stream data directly into ZipOutputStream?
What is the diff. between character-stream and byte stream which one is better?why?