FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WINDEV 2024
→
[WM20] - How to save a file to Download folder in Android -OR-.....
[WM20] - How to save a file to Download folder in Android -OR-.....
Débuté par Yogi Yang, 05 juin 2018 06:35 - 2 réponses
Connectez-vous…
Yogi Yang
#1
Posté le 05 juin 2018 - 06:35
Hello,
I have a need where in I need to download a file from server and save it to either Download folder/director as provided by Android -OR- create a folder in such a way that other software can access that folder and files within it.
I am currently using the following code:
gsPath = fCurrentDir() + "/Assignments/" gsFileName = "Test.xls" nFID = fCreate(gsPath + gsFileName ) sResult is Buffer = HTTPGetResult(httpResult) fWrite(nFID,sResult,Length(sResult)) But the file saved is not accessible to other app on the device.
Any idea as to how to achieve this?
TIA
Signaler
0
0
Luis Antonio Gutiérrez Flores
#2
Posté le 05 juin 2018 - 16:45
You can try using the sysDirStorageCard instead of fCurrentDir
Signaler
0
0
Yogi Yang
#3
Posté le 08 juin 2018 - 05:58
Thanks for the tip.
Will play with it.
Signaler
0
0
→ Revenir à WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (précédentes versions)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Type de recherche
Uniquement les sujets
Tous les messages
Période de recherche
Date indifférente
Moins d'une heure
Moins de 24 heures
Moins d'une semaine
Moins d'un mois
Moins d'un an
Annuler
Aperçu de votre message
Ajouter une image
Importer une image depuis une URL
Envoyer une image depuis un fichier de votre disque
Déposez ici un fichier ou cliquez sur "Parcourir..."
ou
Annuler
0%
WLangage
SQL
XML, HTML
JAVA, Javascript
Texte