Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

New Contributor
Posts: 2
Registered: ‎03-16-2014
My Device: z10
My Carrier: GLO
Accepted Solution

file copy with webworks

Been trying to copy an image from d camera folder to my apps default folder on z10 file system using the entry.getFile() function of HTML it doesn't seem to work I get error.code:1. Pls any help will be appreciated
Posts: 1,561
Registered: ‎04-12-2010
My Device: BlackBerry Z10
My Carrier: Bell

Re: file copy with webworks

Based on the documentation here, I'm guessing it's either a NOT_FOUND_ERR or a SECURITY_ERR:



The first step would be to confirm which it is. In your app, you could either compare against these values to see which it is, or simplly do an alert or console.log to view their values and confirm.


If the file isn't found, we'll need to see how you're setting your path through a code snippet to get an idea of potential fixes. 


If it's the security error, can you please confirm whether you've requested the access_shared permission in your config.xml?



Erik Oros | @WaterlooErik | eoros@blackberry.com | Developer Issue Tracker

If a reply has answered your question, please click Accept as Solution to help other visitors in the future.