img.Save()

14 views
Skip to first unread message

Soni Kumari

unread,
Aug 17, 2026, 11:58:32 AM (2 days ago) Aug 17
to DroidScript
img = app.CreateImage( "/Sys/Img/Droid1.png" );
    img.SetPixelData(qrDataUrl);
    img.Save(app.GetInternalFolder()+"/Pictures/"+prompt_qrname+".png");

I used above way to save base64 image in storage it is saved successfully and 100% accessible in the gallery no any permission required 

So that's way is good? Or there would be any issue while uploading on Google Play Store 

Alan Hendry

unread,
Aug 17, 2026, 12:53:18 PM (2 days ago) Aug 17
to DroidScript
HI,
I'd try building an APK, installing it, and testing.
If it fails you could try adding at the top
_AddPermissions("extsdcard");
_AddPermissions("Storage")
And/or SAF
(because I'm not sure that running under DS is identical to under APK/AAB)
Regards, ah
Reply all
Reply to author
Forward
0 new messages