Ещё немного про base64.
Собрал пример со встроенной в код картинкой. Это иконка для окна на PySide2. Файл кодирован в base64 и просто сохранён в переменной.
Для использования этих данных даже не пришлось сохранять их в новый файл. Иконка создаётся на лету с помощью метода QPixmap.loadFromData()
...
raw_data = base64.decodebytes(ico_encoded)
ico = QPixmap()
ico.loadFromData(raw_data, "PNG")
...
🌎 Полный пример смотрите в gists.
#libs#tricks#qt
India's UPI is taking the world by storm!
With 1 crore+ transactions per hour, 2 lakh+ per minute, and 3500 per second, India leads the real-time payments revolution. Surpassing the US, UK, Germany, and France combined, India holds 46% of all real-time transactions worldwide. UPI is empowering millions like never before.
#8YearsOfDigitalIndia
Honorable Prime Minister #NarendraModi leadership has transformed #DigitalIndia. With a simple click, everything became possible. From digital identities to widespread connectivity, India is scripting a golden chapter of its digital revolution. Check out the video showcasing this remarkable growth.
Visit Now: https://youtu.be/7y2qLEZlOcQ
#8YearsOfDigitalIndia