Hi all,
Currently exploring what are the ways I can upload or retrieve an image for my app. The app is set to be developed on android and iOS platforms and I could really use some advice/help.
1. I tried uploading it and retrieving it from my database, however as the images increase, it makes my app very lag (15 secs taken to display 4 images) that is retrieved from the database. Is there any way to speed things up?
2. For android, From what I know I can use a file path to store the images used from my app and also retrieve the images from there. How do I go on about coding it?
3. For iOS, is there a file path like I can use in android? If yes what is it?
Just looking for the best way to upload and retrieve images without lagging and slowing my app down drastically. Any input and help is appreciated.
Thanks!
Upload and retrieve image concerns
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: Upload and retrieve image concerns
Hi Eddie,
So whatever you add to your standalone via the "Copy files" tab in the "Standalone Application Settings" can be found in your runtime in -> specialfolderpath("resources") on ANY platform!
If you download images you will have to store them in -> specialfolderpath("documents") on iOS and Android because we have write permissions there. Is that what you mean?
Best
Klaus
what is valid for iOS is also valid for Android!
So whatever you add to your standalone via the "Copy files" tab in the "Standalone Application Settings" can be found in your runtime in -> specialfolderpath("resources") on ANY platform!
If you download images you will have to store them in -> specialfolderpath("documents") on iOS and Android because we have write permissions there. Is that what you mean?
Best
Klaus
Re: Upload and retrieve image concerns
Hi Klaus,Klaus wrote: ↑Thu May 14, 2020 5:17 pmHi Eddie
what is valid for iOS is also valid for Android!
So whatever you add to your standalone via the "Copy files" tab in the "Standalone Application Settings" can be found in your runtime in -> specialfolderpath("resources") on ANY platform!
If you download images you will have to store them in -> specialfolderpath("documents") on iOS and Android because we have write permissions there. Is that what you mean?
Best
Klaus
Yes that’s what I meant. So I have to copy the images to specialfolderpath(“documents”) first before I can retrieve it from there? And also for uploading image, the image file would have to be saved to apecialfolderpath(“documents”)? What about the database issue I mentioned in point 1? Any idea why? Thanks for telling me it’s the same for IOS too!
Thanks!
Eddie 

Re: Upload and retrieve image concerns
Hi Eddie,
I meant we cannot SAVE anything in that folder, and for databases even OPENING them is considered SAVING/EDITING.
Best
Klaus
P.S.
Will answer your mail a little later today...
no, just use them from RESOURES!So I have to copy the images to specialfolderpath(“documents”) first before I can retrieve it from there?
I meant we cannot SAVE anything in that folder, and for databases even OPENING them is considered SAVING/EDITING.
No, you can upload anything from the RESOURCES folder, but just not write to that folder (downloading images etc. to that folder is TABOO!)And also for uploading image, the image file would have to be saved to apecialfolderpath(“documents”)?
Well depends on the size of the images. What did you script so far?What about the database issue I mentioned in point 1?
Best
Klaus
P.S.
Will answer your mail a little later today...