Ещё немного про base64.
Собрал пример со встроенной в код картинкой. Это иконка для окна на PySide2. Файл кодирован в base64 и просто сохранён в переменной.
Для использования этих данных даже не пришлось сохранять их в новый файл. Иконка создаётся на лету с помощью метода QPixmap.loadFromData()
...
raw_data = base64.decodebytes(ico_encoded)
ico = QPixmap()
ico.loadFromData(raw_data, "PNG")
...
🌎 Полный пример смотрите в gists.
#libs#tricks#qt
Flossie is the oldest living cat in the world at 30 years old. She was born on 29 December 1995. She is a British tortoiseshell rescued as a kitten from a feral cat colony in England. She is deaf and has limited eyesight. Flossie lives in Orpington, England, with her owner Victoria Green.
🐱🎂🏆
[Read more]
@googlefactss
#Flossie#OldestCat#GuinnessWorldRecords#CatLife#RecordHolder
· · • • • •❄️• · · INSTAGRAM· · •❄️• • • • · ·
⇝•❄️• El gato es el animal más popular en Instagram ya que a día de hoy existen casi 450 millones de publicaciones con hashtags como #cat, #gato, #catlover o #catlife. Muy por detrás le sigue el perro, con una media de 340 millones de publicaciones con etiquetas como #dog, #doglover o #perrosfelices.
· · • • • • • · · · · • • • ☃️• • • · · · · • • • • • · ·