Ещё немного про base64.
Собрал пример со встроенной в код картинкой. Это иконка для окна на PySide2. Файл кодирован в base64 и просто сохранён в переменной.
Для использования этих данных даже не пришлось сохранять их в новый файл. Иконка создаётся на лету с помощью метода QPixmap.loadFromData()
...
raw_data = base64.decodebytes(ico_encoded)
ico = QPixmap()
ico.loadFromData(raw_data, "PNG")
...
🌎 Полный пример смотрите в gists.
#libs#tricks#qt
🌍 In some places, rising sea levels cause ancient shipwrecks to be uncovered as coastlines erode. Coastal erosion can expose hidden history while swallowing beaches and landmarks. ✨
#erosion⚡#sealevel⚡#coast⚡#geography⚡#nature⚡#earth
👉subscribe Amazing Geography🌍
🌍 Since 1900, global sea levels have risen about 20 centimeters, speeding up in recent decades. Low-lying islands and coastlines now face more powerful erosion and flooding than ever before. ✨
#sealevel⚡#coastal⚡#erosion⚡#geography⚡#nature⚡#earth
👉subscribe Amazing Geography🌍
#The_Science🇺🇸📕[PDF]⬇️
16 #October2025
#Weekly_Magazines
For learning, for free(dom).
@backupofmagazines
This week’s Science dives deep into the frontiers of #Nanoscopy, visualizing neural circuits with stunning 3D precision. From Arctic #Permafrost preserving ancient RNA viruses to #Ant colonies evolving architectural immunity, the issue spans from the microscopic to the planetary. Groundbreaking work tracks #SeaLevel change over 4.5 million years and explores durable #Hydrogen production membranes and electric control in #2Dmaterials. The “#ColdStorage” feature warns of hidden viral archives in melting ice—a chilling insight into #ClimateScience and future pandemics. A visionary issue linking biology, chemistry, and global sustainability through the lens of innovation.