Very close to Base64. It returns a blob which you can use as image and you can save too.
If you want a Base64 string then I made a demo app to read the file and provide the Base64 value of it,
https://x.thunkable.com/projectPage/61f68431c3761001dba12df1