I use Scan bot Cordova plugin to generate pdf
using png
. But my API requires to send data as base64
encoded. There is only 1 plugin for this on Ionic native. i.e base64. But it still in beta and seems it has a lot of issues on iOS devices. So any clue about how can I convert pdf into base64 on the Ionic app and it should work fine on both platforms. i.e. Android
and ioS
. Your experience about this subject really helps me to give an advice.
There is a great native plugin for this. That is Native File plugin.It works really well.
let base64String = await this.file.readAsDataURL(pdfFilePath, pdfFilename);