I am trying to insert a file to mysql server by sending a io.BytesIO() object in a blob datatype, then send the file back to my client.
however my client receives a str class instead of the actual io.BytesIO() class
so instead of receiving <_io.BytesIO object as 0X7....>
I receive "<_io.BytesIO object as 0X7....>".
is there anyway of converting str to BytesIO?