How to upload and retrieve pdf file in sqllite database - android-listview

I want upload pdf file into sqlite and retrieve the pdf file into listview how can I do that please send me the code after I retrieve the pdf file in list view it as to open in pdf file how can I do that please help me out
Thank in advance

I personally suggest you to use the cloud firestore to your application which will be helpful to upload or access the contents of files.
you can save the files in the firebase storage and then use the links to access them and list into the listview

Related

How see .doc/.docx and .pdf preview in a flutter mobile app

the question is this. I have a list of documents retrieved from an api (jpg, doc, pdf) that come to me in binary format (unit8list). How do I preview doc and pdf files? For images I have already solved using MemoryImage () but I don't know which library or widget to use for .doc / .docx and pdf files. Thanks in advance :D
You can use open_file package to open and view files.
Here is the URL. Check this out :)
https://pub.dev/packages/open_file
The following package should work perfectly for displaying .pdf files: https://pub.dev/packages/advance_pdf_viewer. You can open any file with https://pub.dev/packages/open_file

Flutter: Share fire directly (PDF)

It's possibile to share directly a Pdf file in flutter? I'm using Share_Plus plugin but it only support url or direct path.
My case:
Pdf uploaded on firebase
I retrive the URL
tried to use URI to file but I can't find the direct path to use with share_plus
The only solution is to save the file in the local storage of the phone and then retrieve di path and use with share_plus?
Thanks
You can use Firebase Storage. Files are url-referable from there.
Read all about it here: https://firebase.google.com/docs/storage

How to save "syncfusion document editor" to database

I want to save the document editor provided by syncfusion but i'm not able to implement the save functionality. could anyone help me
Using SaveASBlob() method you will get the Document as Blob stream(Docx format) in client side and you can save that stream in Database.
Below KB link contains how to save the document in APP_Data folder, you can customize it based on your requirement.
https://www.syncfusion.com/kb/10304/how-to-load-save-file-in-web-server-for-asp-net-core

Show pdf in flutter

How can I show a PDF file in my application?
I have the URLs of the files that I need to open in my database, what I need is to show any of those files.
Is there any way to do this?

Browse file and store file url for uploading it later

I have a form in which you enter some data and you are able to attach files. All I wanna do is have a Browse button so i can select the file and store that file url in some var, so later when i want to submit the form...y can read that var and upload the file using its url. Im using Scala Lift. I search for examples in the web but couldnt find anything helpful. I only want to select the file and store the file url. Can someone help me? Thanks!
You can't store path to file on client's drive. Even if you get path like this, you can't upload file that is not manually selected by client.
I suggest doing AJAX based client.