O'Reilly logo

Special Edition Using Java™ Server Pages and Servlets by Mark Wutka

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 27. Creating On-the-Fly Graphics

Images Aren't Just Static Files

By now you know that you can generate all kinds of output from servlets and Java Server Pages. So far, the one common denominator in the various forms of output has been the fact that they are all readable text. You might be surprised to discover, however, that you can send images from a servlet! Sending an image from a servlet is not the same thing as sending an <img> tag back in an HTML response. Instead, you create an actual JPEG image from inside the servlet and send it back.

Image ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required