io.BytesIO.write

BytesIO.write(bytes) → int. Write bytes to file.

Return the number of bytes written.