We can send text as well as binary data using servlet but not both at a time.
I don't quite like the way this is phrased - text bytes are a subset of all (binary) bytes characters.
Can we send binary data through JSP anyhow ?
Practically, no. Have a look at the
Java source code that gets created from a JSP page, and you'll notice the difficulties.