Ещё немного про base64.
Собрал пример со встроенной в код картинкой. Это иконка для окна на PySide2. Файл кодирован в base64 и просто сохранён в переменной.
Для использования этих данных даже не пришлось сохранять их в новый файл. Иконка создаётся на лету с помощью метода QPixmap.loadFromData()
...
raw_data = base64.decodebytes(ico_encoded)
ico = QPixmap()
ico.loadFromData(raw_data, "PNG")
...
🌎 Полный пример смотрите в gists.
#libs#tricks#qt
This chat is all about kobolds and those who love them, and also own them!~ if you like those little mischievous things then you better hop in and start loving on them!~
#Chat
#Partner
https://t.me/joinchat/f7PyhKiPzrE1MGEx
Do you like beefy bois? Wanna get squeezed by some swole buff guy? Then maybe stop by this channel and oggle at all these muscled studs~
#Channel
#Partner
@snookmusclescorner
This chat is all about kobolds and those who love them, and also own them!~ if you like those little mischievous things then you better hop in and start loving on them!~
#Chat
#Partner
#NSFW
https://t.me/joinchat/f7PyhKiPzrE1MGEx
#MoveWith#Live#Workout#Partner
Join the MoveWith: Live Workout Partner beta on ✈️#TestFlight
🔗 Link: https://testflight.apple.com/join/uEXQqJ2V
Shared by Dimitri