Skip navigation
AKR@M
Currently Being Moderated

how can i read files from /sdcard/DCIM without coping it to the applicationStorageDirectory???

May 4, 2012 11:06 AM

Tags: #air #permissions #android #restriction

I just want to load an image from /sdcard/DCIM and put it into a Loader.

But air restrict access and i get an IOERROR no such url

 

     var directory:File = File.documentsDirectory.resolvePath("DCIM/camera/image1.jpg");

     var appStorageFile:File = File.applicationStorageDirectory.resolvePath(file.name);

     file.copyTo(appStorageFile, true);

    

     var loader:Loader = new Loader();

     loader.load(new URLRequest(appStorageFile.url));

     addChild(loader);

 

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points