ios - Where are images stored on the phone when taking a photo programatically in an app? -


i trying learn more how photo capture works on ios. want ensure if application used take picture, image handled application , not stored elsewhere in camera roll, temp file, etc. ideally, photo taken , application can implement encryption, etc. ensure photo stored confidentially (sensitive document "scanning" scenario).

what security considerations in scenario, user trained not use system camera application , use "scanning" functionality via app. using public apis, temp files or automatic images stored outside of control, , how deal those? not specified in documentation, , afraid there might security/privacy leaks if not understood.

i see how store image in sqlite db, there other file system artifacts left over?

if photos, can have nsdata photos final result. can save data of photo in directory inside application.

best place store kind of data/files in application support directory.

nsstring *appsupportdir = [nssearchpathfordirectoriesindomains(nsapplicationsupportdirectory, nsuserdomainmask, yes) lastobject]; nsstring *photopath = [appsupportdir stringbyappendingpathcomponent:@"photo1.png"];  uiimage *image; //image got camera inside app  nsdata *photodata = uiimagepngrepresentation(image); [photodata writetofile:photopath atomically:yes]; 

Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -