Use fixed and chunked streaming when appropriate.

Closes #242.