Ещё немного про base64.
Собрал пример со встроенной в код картинкой. Это иконка для окна на PySide2. Файл кодирован в base64 и просто сохранён в переменной.
Для использования этих данных даже не пришлось сохранять их в новый файл. Иконка создаётся на лету с помощью метода QPixmap.loadFromData()
...
raw_data = base64.decodebytes(ico_encoded)
ico = QPixmap()
ico.loadFromData(raw_data, "PNG")
...
🌎 Полный пример смотрите в gists.
#libs#tricks#qt
🔰Airdrop: MetaFish
💸Value: 200 Million $MTF($150)
🪐Referral: 40 Million Each #MTF ($30)
⏳Distribution Date: 15th August 2023
💎Ratings: ⭐️⭐️⭐️⭐️⭐️
🔗Airdrop Link: http://t.me/metafishRound2Airdropbot
Note: Airdrop will end on 15th August 2023 and rewards will be distributed to the winners BEP-20 wallet on after Instantly
Disclaimer: Please do your own research (DYOR) before joining to any airdrops project, also airdrop is 100% free. Don't send any fee or penny for receiving airdrop tokens. Also we don't recommend you to invest in any new projects, just join airdrop for free
💧Airdrop : MetaFish💧
📣Complete Task: ➕ 80,000 #MTF (~$60)
📊Referral: ➕ 20,000 #MTF (~$15)
🏆Winners: All Valid users.
💎Ratings: ⭐️⭐️⭐️
📅End Date: 9th Aug, 2022
🔛Metafish Airdrop For Click Here🔛
🌀 Join Metafish Telegram Group & Telegram Channel.
🌀 Join Advertiser Telegram Group & Telegram Channel.
🌀 Follow Advertiser on Twitter and retweet the pinned post.
🌀 Submit Polygon address
📡Enter your information to the airdrop bot.
🗞Note: All airdrop steps should be completed.
✔️Business Inquiry: Admin or Admin2