- Home /
Error while loading image from Windows Phone gallery
Hi !
I have developped a Windows Phone plugin which enable me to open the Windows Phone gallery in order to select an image and get its physic path.
I've used this path to load the image in the application with a WWW object but I get this error
"Error. Operation has failed with error 0x80070005: access is denied."
The path is correct because I display it.
Here is my test code to load the image with the path.
IEnumerator loadImage()
{
this.guiText.text = filePath;
WWW www = new WWW(filePath);
yield return www;
if(www.error == null)
{
GameObject texture = GameObject.Find("UNITY");
if(texture != null)
{
texture.guiTexture.texture = www.texture;
}
}
}
Any help would be appreciated ! Thanks in advance !
Thanks ! Indeed I haven't touched the App.xaml at all. I have to specify the Pictures Library capability in it, do you know how to do it ?
Answer by karljj1 · Apr 17, 2015 at 08:38 AM
Did you tick the PicturesLibrary capability option in the build settings?
This option is available in Windows Store platform only, not in Windows Phone 8 platform, can I switch platform to Windows Store even if my application is for Windows Phone ?
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
unload an object? C# 2 Answers
Play Audio Through Scenes 0 Answers