Allow use of streams instead of file paths.