Siva M
Siva M

Reputation: 21

Saving base64 string as .pdf in mobile local storage flutter

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.

Upvotes: 0

Views: 606

Answers (2)

Siva M
Siva M

Reputation: 21

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.

Upvotes: 0

Fahmi Ali
Fahmi Ali

Reputation: 11

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.

Upvotes: 1

Related Questions