PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV Mobile 2024
→
[WM23] Storing files, image etc. On iOS
[WM23] Storing files, image etc. On iOS
Started by ARV, Mar., 19 2019 5:42 PM - 6 replies
Connect yourself…
ARV
#1
Registered member
498 messages
Popularité : +8 (8 votes)
Posted on March, 19 2019 - 5:42 PM
Hi all
I was trying to save those types of files on my iPHone But I Couldn't do it.
I was using fCurrentDir() to have a path.
But when I try to use FTPGet with fCurrentDir() launch me an error, about that can't create the file or use it on write mode to store my file.
there's a way to save file on iPhone (iOS)?
--
Best Regards
ARV
Report
0
0
Jim
#2
Posted on April, 09 2019 - 4:51 PM
ARV,
I am about to go down that road.
I will let you know if I am successful.
Jim
Report
0
0
ARV
#3
Registered member
498 messages
Popularité : +8 (8 votes)
Posted on April, 10 2019 - 10:10 PM
Hi Jim
Thanks for your reply
I was testing some more of this and yes it is possible BUT!
only if the app create his own docs or recieve docs it is not possible to access files from the device only images and videos.
the way to save files on a path its with
fCurrentDir but in the end put a fsep() function something like
s
PathiOS
is string
=
fCurrenDir
(
)
+
fSep
(
)
with this you can save files on the file path of the app access to this and do whatever you want with them, but only the app could access this files.
now to access files of the device like image its with:
ImagePath
is string
ImagePath
=
AlbumPicker
(
albumImage
)
to access files of the device like videos it's with:
ImagePath
is string
ImagePath
=
AlbumPicker
(
albumVideo
)
this will get you the path of the image or video, what PCsoft say it's that this files are copy from his file to the fCurrentDir, so that's why you can access to them.
that's all I found about this topic... Hope you get lucky more than me.
source of AlbumPicker:
https://help.windev.com/en-US/…
source of fCurrentDir:
https://help.windev.com/en-US/…
--
Best Regards
ARV
Message modified, April, 10 2019 - 10:11 PM
Report
0
0
Jim
#4
Posted on April, 11 2019 - 7:17 PM
ARV,
It works as you said. My app is getting data from a piece of hardware.
Then it creates a .csv file of the data.
I am then able to open the email app and send it.
One strange thing is happening and I cannot say what is causing it. Emulator and phone both.
The .csv will open incorrectly in Excel. Other programs like Open Office and Google see it correctly.
Excel says it is in an unrecognizable format. It will open, but everything is in one column. The commas are there.
It appears IOS is locked down pretty good. The files app doesn't even have the option of looking on the phone, only ICloud.
Jim
Report
0
0
Jim
#5
Posted on April, 11 2019 - 8:28 PM
I think I am OK.
My Excel version is likely too old.
I didn't try to open a file in the app though. (I have no need to)
Would you like me to attempt it?
Jim
Report
0
0
ARV
#6
Registered member
498 messages
Popularité : +8 (8 votes)
Posted on April, 11 2019 - 10:06 PM
Hi Jim
Good thing to know that works for you.
If you want to try it yes, maybe it's the version of the excel who knows.
about send it something on email, do you create your own app or it's something like gmail?
with that in mind how could you access to the files you create or recieve on fCurrentDir?
is it possible to access that file with another app?
that file are not erased when the app it's uninstall?
Good luck!
--
Best Regards
ARV
Report
0
0
ARV
#7
Registered member
498 messages
Popularité : +8 (8 votes)
Posted on May, 14 2019 - 10:06 PM
Hi
be careful using fCurrentDir if the app updated or it's uninstall then you will lose every file you save there
this only happend to iOS thought
--
Best Regards
ARV
Report
0
0
→ Go back to WINDEV Mobile 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (earlier versions)
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text