So I have this basic code at the moment.
import base64
with open("test.png", "rb") as image_file:
encoded_string = base64.b64encode(image_file.read())
And it converts the image into a crazy long string, I'm doing this of hopes of copying that string and making it a variable in another script I'm making. I don't want to save it to the computer or anything, I just want it to be decoded and opened for the GUI background. I'm trying to make it so just the exe is needed and nothing else.
I've found other questions going over this, but sadly I can't quite understand the answers very well. So if possible the simplest way would be much preferred, thank you!
Edit: The possible duplicate that was linked is fair, but it doesn't answer my question because as I said I don't understand what they did, why it works that way. And if i understand it at all I think it stores the image path but not the actual image in the exe. I want to be able to take the exe file and only that on a flash drive and it works.