ios - How to find path o image so I can reload later again same image? -


how path on device of captured image ? showing image , below have switch when off show default image project, when on want show image user captured. in capture function can set image imageview

#pragma mark - uiimagepickercontrollerdelegate - (void)imagepickercontroller:(uiimagepickercontroller *)picker didfinishpickingmediawithinfo:(nsdictionary *)info {     [self dismissviewcontrolleranimated:yes completion:null];     nslog(@"%@", info);     uiimage * imagetemp = [info objectforkey:uiimagepickercontrollereditedimage];      if (imagetemp == nil)         imagetemp = [info objectforkey:uiimagepickercontrolleroriginalimage];     [self.image setimage:imagetemp]; } 

and sets image imageview don't have path. have print info , looks like

{     uiimagepickercontrollermediametadata =     {         dpiheight = 72;         dpiwidth = 72;         orientation = 6;         "{exif}" =         {             aperturevalue = "2.526068811667588";             brightnessvalue = "5.667090406070278";             colorspace = 1;             datetimedigitized = "2013:05:14 01:02:48";             datetimeoriginal = "2013:05:14 01:02:48";             exposuremode = 0;             exposureprogram = 2;             exposuretime = "0.008620689655172414";             fnumber = "2.4";             flash = 25;             focallenin35mmfilm = 35;             focallength = "4.28";             isospeedratings =             (                 50             );             meteringmode = 5;             pixelxdimension = 3264;             pixelydimension = 2448;             scenetype = 1;             sensingmethod = 2;             shutterspeedvalue = "6.862622389675391";             subjectarea =             (                 1631,                 1223,                 881,                 881             );             whitebalance = 0;         };         "{tiff}" =         {             datetime = "2013:05:14 01:02:48";             make = apple;             model = "iphone 4s";             software = "6.1.3";             xresolution = 72;             yresolution = 72;         };     };     uiimagepickercontrollermediatype = "public.image";     uiimagepickercontrolleroriginalimage = "<uiimage: 0x20ac0470>"; } 

but cannot find can use find path. how find path o image can reload later again same image ?

if want use image later stages in app have save url of image.

if want extract image url , image name can in current implemented delegate method self. nsdictionary info contains information image.

#pragma mark - uiimagepickercontrollerdelegate  - (void)imagepickercontroller:(uiimagepickercontroller *)picker  didfinishpickingmediawithinfo:(nsdictionary *)info{      nsurl *imagepath = [info objectforkey:@"uiimagepickercontrollerreferenceurl"];     nsstring *imagename = [imagepath lastpathcomponent]; } 

you can save image using imagepath @ stage inside didfinishpickingmediawithinfo:


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -