save pictures/files outside of csentry folder

Discussions about creating CAPI applications to run on Android devices
Forum rules
New release: CSPro 8.0
Post Reply
RERII
Posts: 56
Joined: March 4th, 2015, 11:34 am

save pictures/files outside of csentry folder

Post by RERII »

I would like to know the correct way of saving a file or picture outside of the csentry folder. I don't want enumerators going into the csentry folder. So I would like to save to another folder already created outside of the csentry folder.
aaronw
Posts: 561
Joined: June 9th, 2016, 9:38 am
Location: Washington, DC

Re: save pictures/files outside of csentry folder

Post by aaronw »

Typically I recommend saving it to the application folder like this:
execsystem("camera:" + pathname(Application) + "photo.jpg");
However, if you want to save it outside the csentry folder you could try:
execsystem("camera:" + pathname(CSEntry) + "../photo.jpg"); // Save one folder up from csentry
execsystem("camera:" + pathname(CSEntryExternal) + "photo.jpg"); // Save to SD Card
RERII
Posts: 56
Joined: March 4th, 2015, 11:34 am

Re: save pictures/files outside of csentry folder

Post by RERII »

Thanks so much for the help. I took the long way before I got your answer. I used the full path. Your version is more code friendly.
Post Reply