Home > Blockchain >  Saving base64 string as .pdf in mobile local storage flutter
Saving base64 string as .pdf in mobile local storage flutter

Time:10-14

This is the path " /data/user/0/com.example.flutter_pdf_proj/app_flutter/example.pdf" i am getting while converting base64 string to bytes using path provider package.

enter image description here

I can open the PDF and view in mobile.

now i a have to save this PDF in mobile local storage in mobile. How can i do that.

Please help me?

Thanks in advance.

CodePudding user response:

You can let users to locate where they want to save their pdf (or any files you generate before) using https://pub.dev/packages/flutter_file_dialog. It can help you in "duplicating" file to specific folder as they want to.

CodePudding user response:

Actually i donot have filemanager in my emulator. So i am unable to view the downloaded path in the device. So now i have installed file manager in my emulator device and able to see the PDF docs in the device. So thanks everyone for your help.

  • Related