Picture path

Discussions about CSEntry
Forum rules
New release: CSPro 8.0
Post Reply
RERII
Posts: 56
Joined: March 4th, 2015, 11:34 am

Picture path

Post 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?
aaronw
Posts: 561
Joined: June 9th, 2016, 9:38 am
Location: Washington, DC

Re: Picture path

Post 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);
Post Reply