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.php
make sure, you are using the correct file name including path, for example