Hi I read a file into fileContent
with open(window.filename, mode='rb') as file: # b is important -> binary
fileContent = file.read()
now I want to store fileContent - lets say in mysql - so I can restore the file later on demand.. fileContent is now a fileobject as i unterstood, so how would I store it ? .. I would need to convert it to a string and then later i should be able to convert it back to fileobject so I could do a
newFile = open("savedFile.jpg", "wb")
newFile.write(fileContent)
?