Highlighted

Load image from "Containers" folder on iOS 8?

Explorer ,
Feb 14, 2015

Copy link to clipboard

Copied

Hi,

Is it possible to load an image from a path like the one below without using an .ane? (Adobe Native Extension)

Path:

file:///private/var/mobile/Containers/Data/Application/997B6DDE-2709-569-AEBE-9866444/Documents/Inbox/9282_999.jpg

Thank you

TOPICS
Development

Views

1.7K

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Load image from "Containers" folder on iOS 8?

Explorer ,
Feb 14, 2015

Copy link to clipboard

Copied

Hi,

Is it possible to load an image from a path like the one below without using an .ane? (Adobe Native Extension)

Path:

file:///private/var/mobile/Containers/Data/Application/997B6DDE-2709-569-AEBE-9866444/Documents/Inbox/9282_999.jpg

Thank you

TOPICS
Development

Views

1.7K

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Feb 14, 2015 0
Engaged ,
Feb 16, 2015

Copy link to clipboard

Copied

That is the documents directory so access it like this:

var f:File =  File.documentsDirectory.resolvePath("Inbox/9282_999.jpg");

Then load it with the Loader class.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Feb 16, 2015 0
Explorer ,
Feb 16, 2015

Copy link to clipboard

Copied

Sorry, I forgot to mention that it is NOT my apps documents directory.

Does your code also work to load images from document directories from other apps or are those restricted?

Thank you

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Feb 16, 2015 0
Engaged ,
Feb 16, 2015

Copy link to clipboard

Copied

I have never tried it but I would not expect it to work.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Feb 16, 2015 0
Advocate ,
Feb 16, 2015

Copy link to clipboard

Copied

Sorry, I forgot to mention that it is NOT my apps documents directory.

You can't. It's sandbox violation. And ANE will not help.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Feb 16, 2015 0