0 Replies Latest reply on Jan 18, 2013 3:47 PM by Don Kerr

    Load camera photo File on iOS

    Don Kerr Level 3

      I can load a photo from DCIM/Camera on Android no problem.  How do I load it on iOS?  What is the path to the photos taken on by the camera?

      I tried /var/mobile/Media/DCIM but it didn't work.


      I have code that takes a photo, then displays the photo inside the app.  I need to get it working on the iPad like it does on Android.





      code snippet below ...


      var cDir:String;

                                              if(OS == 'Android'){


                                                   cDir = File.documentsDirectory.resolvePath("DCIM/Camera").nativePath;



                                              else {


                                                        cDir = File.documentsDirectory.resolvePath("/var/mobile/Media/DCIM").nativePath;





                                              photoFile = new File(cDir);

                                              photoFile = photoFile.resolvePath(event.data.file.name);


                                              photoFile.addEventListener(Event.COMPLETE, onLoadedPhoto);