Page 1 of 1

Picture path

Posted: April 16th, 2019, 5:51 am
by RERII
Hello to all hope the year is going good.

I am at a standstill. I want to take a picture during the interview, then have the picture go to a specific folder

"execsystem(maketext("camera:%s%s",pathname(application), y));"

Can you please help me revise the code so I can send the picture to a specific folder and also name the picture after a variable?

Re: Picture path

Posted: April 17th, 2019, 5:23 pm
by aaronw
Make sure the directory your saving the photo to exists.
string relativePath = "../my-folder/";
string photoName = "photo-name.jpg";

// Directory must exist
dircreate(pathname(Application) + relativePath);
execsystem("camera:" + pathname(Application) + relativePath + photoName);