Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

Can we get PrintWriter and ServletOutputStream both in a servlet? give reason for your answer?

user-image
Question ajoutée par Mohd shahnawaz khan , Associate Project , Cognizant Technology Solution
Date de publication: 2013/09/25
Saba Wasim
par Saba Wasim , IT Project Manager, Solution Manager , COTSYS

Yes, You can use both, but make sure the data you are retriving back.

 

printwriter is being used for char based data outpur like data from database. It is also do a unicode char conversion.

for bit streams like getting images you should use serveroutputstream.

 

 

More Questions Like This

Avez-vous besoin d'aide pour créer un CV ayant les mots-clés recherchés par les employeurs?