Merge pull request #3604 from Ignasimg/patch-1

Add support for raw_input_stream