PDF to base64

Hey everyone,
I am having some difficulty on saving a pdf to a base64 format.

I tested on web view (ionic serve), it went well but when I run it on my mobile phone(apk), it return file path instead of base64. Do you guys have any solution in this matter ? Need help :frowning:

Thank you in advance.