Writing then reading in-memory bytes (BytesIO) gives a blank result December 29, 2022 by Tarik You need to seek back to the beginning of the file after writing the initial in memory file… myio.seek(0)