There is always a need to set the content type,
especially when writing binary data. After all, if you just present the browser with a splotch of binary gloop, how is it supposed to know whether it's a JPEG image (image/jpeg), GIF image (image/gif), PNG image (image/png), AVI movie, QuickTime movie, MIDI file,
Word document, or some format it doesn't know and needs to pop up a "Save As..." dialog box for?
- Peter