io.BytesIO.read

BytesIO.read([size]) → read at most size bytes, returned as a string.

If the size argument is negative, read until EOF is reached. Return an empty string at EOF.