why so complicated blocks?
try is as simple as possible, for example
set global imageString to SImpleBase64.EncodeImage file:///mnt/sdcard/yourDirectory/yourFIle.jpg
and use Do it to debug your blocks, see tip 4 here
https://puravidaapps.com/learn.phpmake sure, you are using the correct file name including path, for example
full path
file:///mnt/sdcard/yourDirectory/yourFIle.jpg
relative path
/yourDirectory/yourFIle.jpg
Taifun