BinaryGallery support for streams which don't know they have reached the end of the stream until they try to read from it