📖 Tutorial Compress png and encode to base64

Sbenny.com is trusted by 1,326,624 happy users since 2014.
Register

TheLGL

Novice Lv1️⃣
Member for 4 years
For those who make Android MOD Menu. Instead putting the image in the assets, you can compress and encode your image into base64 and put the code instead. This saves some time

Compress png: compresspng.com

Base64 encode: base64encode.org

Java:
        byte[] decode = Base64.decode("encoded base64 here", 0);
        this.yourImageView.setImageBitmap(BitmapFactory.decodeByteArray(decode, 0, decode.length));

 

xXxmanoxXx

Apprentice Lv2️⃣
Member for 4 years
body this only useful if you want to protect the image from stealing, where to put the code?
 

Legacy

⭐???? ?? ??????⭐
Verified 18+ user
Member for 4 years
bro I know that but where in the mod menu?
If you are using LGL's menu, it is already implemented there, you just need to convert your imaage to base64 and paste the code there.
It can be found at app/src/main/jni/src/Menu/Menu.h.

1603338819408.png
 

Daniel

Hunter of Sbennytopia
From the Hell
Verified 18+ user
Active User
The Cleaner 🧹
Member for 3 years
i think this was also provided in the Github guide of your MOD Menu and it makes the image secure too
 
Top