04-30-2012 01:58 PM - edited 04-30-2012 02:38 PM
I'm trying to copy images from my application directory to the playbook picture folder.
I haven't been doing javascript in a long time, and unsure what I'm doing wrong. Can someone please point me to the right direction? Thanks
<script language="javascript">
function downloadImage() {
var picturePath = "accounts/1000/shared/photos";
var imagePath= "../images/";
copy(imagePath+ "picture.jpg", picturePath);
}
</script>
Solved! Go to Solution.
04-30-2012 06:49 PM - edited 04-30-2012 06:49 PM
okay... ignore my last post I was being stupid ![]()
ReRead the API Reference:
Shouldve wrote
blackberry.io.file.copy(filePath, "file:///SDCard/myxmlfile2.xml");
Instead of
copy(filePath, "file:///SDCard/myxmlfile2.xml");