• Post Reply Bookmark Topic Watch Topic
  • New Topic

Use getOutputStream or getWriter  RSS feed

 
anand chawla
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what are the advantages of using getOutputstream over
getwriter
can anyone help me out with this doubt
 
Bosun Bello
Ranch Hand
Posts: 1512
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Using one or the other depends on what you'll be sending back to the client. To send binary data, use getOutputStream(), to send character data, use getWriter(). You can not use bothe either.

Bosun
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!