Load camera photo File on iOS

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.
Thanks,
Don
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.load();
                                        photoFile.addEventListener(Event.COMPLETE, onLoadedPhoto);

http://discussions.apple.com/thread.jspa?threadID=2547726
http://discussions.apple.com/thread.jspa?threadID=2541539
http://discussions.apple.com/thread.jspa?messageID=11884200
I think you get the point.
This is an obvious problem, but Apple has done nothing to fix it yet.
All we can do is wait...

Similar Messages

  • Load FLVPlayback skin file on iOS

    I have built an application which plays flv videos using the FLVPlayback 2.5 component.
    It works fine on Windows, Mac and Android but on iOS it hangs when loading the skin.
    I searched and found that iOS doesn't allow loading secondary SWF with code in it which is the case as the skin SWF contains as3 code.
    I tried the solution here:
    http://blogs.adobe.com/airodynamics/2013/03/08/external-hosting-of-secondary-swfs-for-air- apps-on-ios/
    but didn't work for me.
    I also embedded the skin SWF in the code, tried loading it and it worked in debugging with Fast Packaging using Flash Builder, but with Standard Packaging didn't, as well as when I exported a release built and ran it. I got the following message:
    Does anyone have an idea what to do?
    If I export the skin as .swc file and add it to my library path will it work and how can I load it? Has anyone tried it?
    Thanks in advance.

    Any help please?

  • Solution for load external FONT sf file to iOS application

    Hi,
    i follow this instruction to load externalHosted sf files to iOS application.
    http://blogs.adobe.com/airodynamics/2013/03/08/external-hosting-of-secondary-swfs-for-air- apps-on-ios/#comments
    I need to load external swf files (Font only) on runtime and embed it runtime.
    But I always got the uncompilled action script error on adhoc or release build.
    how can I solve this problem? The Font is not an asset, and I can't load it on runtime on iOS?
    thanks

    Did you try this doc? Packaging and loading multiple SWFs in AIR apps on iOS

  • Support for RAW photo files under iOS8

    I have an iPad Mini 2 which I've been using as a temporary back up of the JPEG and NEF raw files from my Nikon DSLR while I'm traveling.  When I got home, I would always transfer the backup photos from the iPad to my Mac Pro.  This worked flawlessly when I had iOS 7 installed on the iPad.  However,  it has stopped working now that I've (accidentally) upgraded my iPad to iOS 8.1.   I can still download my JPEG backup files from the iPad to the Mac, but the download of the raw files fails every time with a system error message.  It fails whether I try to download the photos in iPhoto, Lightroom, or even Image Capture...the error message is always the same.  From the size of the raw image file on the iPad (42 MB), I know it's not just a null/empty file of 0 MB in size.  Has anyone else experienced this problem since upgrading to iOS 8 on their iPads?  Can anyone sugge a fix for my problem?  On the Mac Pro I'm running OS 10.9.5, Mavericks, not Yosemite.

    Here's more information on this issue.
    As an experiment, instead of loading my photo files onto my iPad Mini via Apple's camera kit (the memory card reader), I emailed myself two test files, one JPEG and one NEF.  I opened the email msg on my iPad and saved both files to the iPad.   Both files showed up in the Photos app.  I then brought up Image Capture on my Mac and used it to transfer the files over from the iPad.  This worked perfectly and both the JPEG and the raw NEF copied over correctly to the Mac.  What this suggests is that the problem is probably isolated and occurs only when the raw files are copied from the memory card using the Apple dongle. 
    I've been in touch with Apple Support and had two on-line chats with them so far.  The issue has now been kicked over to the "engineers" (not sure exactly what that means).  They are now aware of the problem but I received no other information.   It might help if you also contacted Apple Support to let them know more than one person is experiencing the same problem. 

  • Photo files get out of order

    I loaded different photo files on an iPad2 (iOS 8.2) from my computer (Windows).
    For some time they appear on the iPad in the order that is to be seen on the computer - organised by date (e.g. 2010 October; 2011 March and so on).
    After some time -can be weeks - the same order still applies from the oldest to the newest file but after the newest file some older ones appear again. In those "doubles" you do not even have the pictures that appear in the file that is in the correct position but photos taken from a completely different file.
    The same thing happens again after having deleted all files and then having synchronized them with iTunes.
    How can I solve that problem?
    I am grateful for your advice.
    Chulumani

    Ok, thanks, but odd that it wouldn't follow the order in the computer. Anyone know what variable is used by iPod when sorting pictures in a slideshow?

  • Why does my computer recognise my iPhone 4 as a digital camera? I can't load any audio files. Thanks

    I recently bought an iPhone 4 and a month later the Apple Shop installed IOS 5.  My contacts have all been backed up but I can't get the phone to load any audio files - no podcasts or music.
    Thanks, Colin.

    When there are photos/vidoes in the Camera Roll, the iPhone will also be recognized as a digital camera when connected to your computer.
    http://support.apple.com/kb/TS1538
    http://support.apple.com/kb/ts1591

  • Why when i connect my phone to my laptop do my recent photos load as image files and not jpeg

    why is it that when i connect my phone to my laptop my recent photos load
    as image files and not jpeg as they used to.Is this another issue with ios 8

    Thank you. I did that and made sure my phone was open to the camera roll. I was able to locate the import command and the photos appeared. Thanks so much!

  • Camera Roll and Resetting Photo File Names

    Because of the improved camera, I've just started using the iPhone as a reasonable substitute for carrying round a digital camera, but I've recently noticed that the file name counter keeps getting reset. There is no memory of what the last photo was called before the Camera Roll was emptied.  This is a problem as I end up with loads of duplicate file names like IMG_0001.JPG, etc.  Surely there must be a way of avoiding this happening.

    Camera roll is your for keeps photo album. Photo stream is meant to be temporary to give you time to download the photos to your other devices is you want to.

  • A working method to load local PDF and HTML files on iOS

    I had a lot of trouble getting this to work, and I'm hoping this post saves someone time. Some of the information that's been posted in other locations is either wrong, incomplete, or might only work on Android. By the time you read this message the information here may no longer be accurate, so here's the testing environment:
    Window 7
    Flash CS 5.5.0
    AIR 2.7.0.19530, which was compiled on June 28, 2011
    iPad 1, version 4.3.5 of iOS
    Let's get started.
    On iOS, you load external PDF and HTML files using the StageWebView class.
    On Windows, StageWebView works but the HTMLLoader class is a better choice if you're creating a desktop app.
    You can also load HTML files by reading in the file's text. The information in this post is only for loading external HTML files.
    StageWebView will not load a file that's in File.applicationDirectory. All files bundled in your app are placed in File.applicationDirectory, which means you'll have to copy any external file you wish to load with StageWebView to another directory.
    So where can you copy your file? File.applicationStorageDirectory won't work. File.documentsDirectory does work.
    Several people have recommended copying to a temporary file using File.createTempFile(). This works, but there's a catch: it seems that, like Windows, StageWebView relies on a file's extension when determining how to load it. When you create a temporary file on iOS using File.createTempFile(), the file will have no extension (and on Windows, File.createTempFile() creates a file with the extension .tmp, which is equally problematic).
    The solution to the file extension problem is to rename the temporary file by appending the original file's extension. AIR currently does not have a <file>.rename() function, so you'll have to do it using <tempFile>.moveTo().
    Here's some code I've successfully tested several times on both iOS and Windows. The file is copied to the temp directory. The file's extension is restored by just slapping the original file name to the end of the temp file.
            private function loadExternalFile():void
                var webView = new StageWebView();
                webView.stage = this.stage;
                webView.viewPort = new Rectangle( 0, 0, 1024, 555 );
                // Works with either html or pdf files.
                // These are stored in the root of the application directory.
                var fileName:String = "euei.pdf";
                //var fileName:String = "euei.htm";
                var sourceFile = File.applicationDirectory.resolvePath( fileName );
                var workingFile = File.createTempFile();
                try
                    sourceFile.copyTo( workingFile, true );
                    // You have to rename the temp file
                    var renamedTempFile:File = workingFile.resolvePath(workingFile.nativePath + fileName);
                    workingFile.moveTo(renamedTempFile, true);
                    webView.loadURL( renamedTempFile.url );
                catch (err:Error) { }

    I tried this with Flash CS5.5 and AIR 4.0 SDK. Any pdf loaded simply fills the viewPort with black. Also tested with a png version of the pdf and that displayed just fine.
    What's the purpose of copying to a temp work file? I found that webView.loadURL( sourceFile.url ); gave me the exact same results.
    Any ideas?
    Thanks!

  • I was loading a big file of photos from iPhoto to Adobe Photoshop CS3 and it keep collapsing, yet each time I reopen photoshop it load the photos again and cal laps again. is there a way to stop this cycle?

    I was loading a big file of photos from iPhoto to Adobe Photoshop CS3 and more then midway it keep collapsing, yet each time I re-open photoshop to load a small amount of photos, it load the previous photos again, and again it collapse. is there a way to stop this cycle and start a new?

    http://helpx.adobe.com/photoshop.html

  • Loading local swf files from Application Dir (ios)

    Hi Guys,
    I would like to load additional local swf files to my ios release build but I am confused a little bit because of the new API changes.
    As far as I know at the moment (from Air 3.7 or newer) it is allowed to load local swf files that contains compiled actionscript both from local folder and from a predefined remote host as well. 
    My assumption based on this article:
    http://blogs.adobe.com/airodynamics/2013/03/08/external-hosting-of-secondary-swfs-for-air- apps-on-ios/
    I created the text file to include all of my local swf file names and created the following node in the application.xml:
    <iPhone>
           <externalSwfs>assets/SampleSWFInfoFile.txt</externalSwfs>
    </iPhone>
    When I compile the release build (ipa) using command line adt, it converts all of my local swfs into the stripped swfs which is perfect, but even though I include all the swfs in the compiler command, it puts only the SampleSWFInfoFile.txt file into the assets folder in the ipa but not the swf files.
    I assume, it thinks I will load these files from an external host, but I would like to include them in the app itself.
    I tried to copy the stripped swf files from the externalStrippedSwfs folder and comment the <externalSwfs>assets/SampleSWFInfoFile.txt</externalSwfs> node in the application.xml and compile it and this way it puts the swf files into the ipa, but when I try to install and launch the app it crashes and when I test it using Flash Builder it shows an error message
    "VerifyError: Error #1042: Not an ABC file."
    Do any of you guys know the  solution for this problem?
    Thank you for your help in advance!

    You're publishing in AOT mode as long as you use one of these:
    The AIR Developer Tool or ADT has targets that lets you package apps either for the AOT mode or Interpreter mode. The targets for packaging in AOT mode are ipa-app-store, ipa-ad-hoc, ipa-test and ipa-debug.
    Flash Pro CS6 and Flash Builder automate this process pretty well so it's invisible but the SWF loads and executes code just fine for me when directly published.
    If I take it to command line I can use this to compile successfully (iPad test app):
    adt -package -target ipa-ad-hoc -storetype pkcs12 -keystore my.p12 -provisioning-profile my.mobileprovision NameOfApp.ipa NameOfApp-app.xml NameOfApp.swf iTunesArtwork iTunesArtwork@2x AppIconsForPublish swfs/swfs.txt swfs/GenerateText.swf
    I at least include generic icons in there but I made a 'swfs' folder and placed 'swfs.txt' and 'GenerateText.swf' in there. The SWF uses code to randomly generate text and changes every second using a Timer. I load it in using the same code you do with the ApplicationDomain.currentDomain context. I see the SWF appear and text start randomly changing.
    As I compile there's a folder generated called 'externalStrippedSwfs' with the stripped SWF in there.
    One thing to note is I do not supply <externalSwfs>swfs/swfs.txt</externalSwfs> in my iPhone settings. If I do that it doesn't work. I supply the path to the text file containing the SWF I want to be stripped to adt itself along with the SWFs I want stripped and it takes care of the rest.

  • HT4946 I have had my iPhone for about a year, and I have a photo file from my old blackberry. When I go to back up my photos, it only backs up the camera roll. How do I back up the other album? The laptop where I had those photos broke, please can someone

    I have had my iPhone for about a year, and I have a photo file from my old blackberry. When I go to back up my photos, it only backs up the camera roll. How do I back up the other album? The laptop where I had those photos broke, please can someone help.

    You're going to have to email those photos to yourself.

  • Im running lightroom 4 and just purchased the Sony A7 and using its sd card. when I   tried to load the photos, I got a message "the files are not recognized by the raw format support in lightroom"

    Tried loading my raw files shot w my new Sony a7 and its sd card into lightroom4. Got a message: "The files are not recognized by the raw format in lightroom"
    Does Lightroom 4 not work with the Sony A7?
    Thanks,

    Lightroom 4 cannot read the RAW photos from a Sony A7
    You would have to download and install the FREE Adobe DNG Converter version 8.5 and then convert your RAW to DNG, and then import the DNGs into Lightroom 4
    You could also purchase Lightroom 5.5, which will have the capability to read the RAWs directly.

  • HT1454 HELP! ITook loads of photos on my ipod touch, and when i went to look at them they were just black images , and then out of 50 bout 7 of them came out?anyone know how to get the black pictures turn out ?

    HELP! ITook loads of photos on my ipod touch, and when i went to look at them they were just black images , and then out of 50 bout 7 of them came out?anyone know how to get the black pictures turn out ?

    Try the following:
    - A reset. Nothing is lost
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Restore from backup

  • TS3899 After upgrading to IOS 7, the only options Gmail gives using Safari or mail to attach files are attaching a camera roll file or  draw a scribble. How can I attach a PDF or word doc? I was able to do so using IOS 6.

    After upgrading to IOS 7, the only options Gmail gives using Safari or Mail app to attach a file are attaching a camera roll file or drawing a scribble. How can I attach a document such as a PDF or word file? I used to be able to do so using IOS 6.

    skinb wrote:
    Did  you solve the problem? I am a new iphone user. Mac is less intuitive than wished.
    You posted in the iPad forum instead of the iPhone forum. To get answers to your question, post in the proper forum. See https://discussions.apple.com/welcome
    You tagged onto an older post. If you want an answer to your specific question, you need to create a new post. By creating a new post, you will receive emails when helpers post responses.
     Cheers, Tom

Maybe you are looking for