def get_binary_iterator(self):
CHUNK_SIZE = <NUM_LIT><EOL>file_object = open(self.path)<EOL>while True:<EOL><INDENT>data = file_object.read(CHUNK_SIZE)<EOL>if not data:<EOL><INDENT>break<EOL><DEDENT>yield data<EOL><DEDENT>file_object.close()<EOL>
Generator to read a file piece by piece.