O'Reilly logo

The ASP.NET 2.0 Anthology by Phil Haack, Jon Galloway, Wyatt Barnett, Jeff Atwood, Scott Allen

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 12 Rendering Binary Content

Developers who spend much of their time building web applications tend to start thinking that all content is text. After all, what does our code really do other than render text to be shuttled back and forth between a web browser and the web server?

As it turns out, text/html is not the only MIME type that matters on the Web. There are plenty of other types of web content besides text: video files, various document files, and images, for example. Most developers think of images as static content—they’re simply files that are placed in a directory and served up by the web server.

But you, intrepid reader, are not “most developers.” Let’s look at some of the ways in which we can take charge of this binary ...

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