Ещё немного про base64.
Собрал пример со встроенной в код картинкой. Это иконка для окна на PySide2. Файл кодирован в base64 и просто сохранён в переменной.
Для использования этих данных даже не пришлось сохранять их в новый файл. Иконка создаётся на лету с помощью метода QPixmap.loadFromData()
...
raw_data = base64.decodebytes(ico_encoded)
ico = QPixmap()
ico.loadFromData(raw_data, "PNG")
...
🌎 Полный пример смотрите в gists.
#libs#tricks#qt
#Syria | W. #Damascus: Alaa Khazama was killed and his body was found today, April 12, 2026, in the #Barada River area in rural Damascus. He had missing for five days after leaving for work as a taxi driver.
Alaa Khazama was originally from the rural outskirts of #Baniyas and was a member of the #Alawite community.
#Baniyas | #WesternSyria : The statue of the Virgin Mary at a shrine known as #alBasiya Shrine, located in the #alKharab area in the Baniyas countryside, was vandalized yesterday, March 29, 2026.(photo to the left)
It is worth noting that a previous statue of the Virgin Mary at the same shrine had been vandalized on February 19, 2026 (photo to the right). Locals replaced it, only for it to be vandalized a second time.