Open generated file (Uint8list) in default application in Flutter

382 Views Asked by At

My application is generating excel and pdf reports. They are generated in Uint8list. Is there a way to open such files in default application?

I tried open_file package, however, it requires a file path while my file is in memory. same with url_launcher.

Also I tried saving the file then using open_file, but it doesn't work on web as file can't be saved.

1

There are 1 best solutions below

0
On

I solved the issue by using printing.dat package. it has a PdfPreview that takes Uin8list and shows a preview with so many other options.