Mazin
(Mazin Manjeri)
January 25, 2021, 6:48am
1
Hello Friends,
How can I save a offline file to tiny db from a url ?
Mean :-
If I enter a link to a text box and click a button , then download the file to tiny db from that link …
Then,in future, when users click another button , then show the filename (which stored to tiny db) to a label…
How it it ?
Mazin
(Mazin Manjeri)
January 25, 2021, 7:26am
3
Thanks @bodymindpower ,
But it’s only a question…
It haven’t blocks to show and debug…
Mazin
(Mazin Manjeri)
January 25, 2021, 7:35am
4
Anyway, @bodymindpower ,
I edited it !
After download a file , you get filepath variable… then save it to tinydb…
2 Likes
Mazin
(Mazin Manjeri)
January 25, 2021, 8:44am
6
Thanks my dear @netsolutions1
You solved my question
Mazin
(Mazin Manjeri)
January 25, 2021, 8:57am
7
But, can I Store it without downloading ?
Mazin
(Mazin Manjeri)
January 25, 2021, 9:00am
9
Ikr, but, it want to download after click the button,
Can I Store the link as filename without downloading ?
You will get a file name from link. You can use it…
Taifun
January 25, 2021, 6:05pm
11
TinyDB is to store text and not files
to store files the recommendation is to store them in the ASD - Application Specific Directory
you might want to use this extension by @bodymindpower
Here is an extension to download any file (jpg, png, txt, apk, zip, mp3, …) to the ASD (app-specific directory) without WRITE_EXTERNAL_STORAGE permission.
Version 1 (Dec 13, 2020):
de.bodymindpowerDownloadToASD.aix (removed)
Version 2 (July 16, 2021):
DownloadToASD.aix (7.5 KB)
Version 3 (Aug 24, 2021):
Here is a special version of the extension, that does not show a notification while / after downloading.
DownloadToASD_notifHidden2.aix (7.6 KB)
Note: Use this version of the extension on…
Taifun
Mazin
(Mazin Manjeri)
February 18, 2021, 7:19pm
12
Tnx, I will try it in my next project
system
(system)
Closed
March 20, 2021, 7:19pm
13
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.