please how to do i convert a sequence of bytes back to the original file in python(Excel file in my case)?
with open(‘excel.xlsx’, ‘rb’) as file:
content = file.read() This line of code returns a bytes object. After performing
some computations, i would like to turn the bytes returned back into the origninal excel file.
i tried using io.BytesIO(org_data) to convert back but no avail
Nongni Dongho is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.