added option to allow for streaming large files

Adds an option to stream large files without loading them into memory