problem with API FileI/O
Please Login to Remove!
I want to download an image and stored in the folder on the SD card, using the API File I / O.
its not work with blackberry.io.file.saveFile (filePath, blob);
Here is my code :
var filePath = "file:///store/home/user/myPicture/sample.png";
$.get(url,
function(data){
if(data != null) {
blackberry.io.file.saveFile(filePath, data);
}
alert("file saved");
},
'png');
I have this Exception :
java.lang.IllegalArgumentException: Invalid type - class java.lang.String
Running at line 277: blackberry.io.file.saveFile(filePath,data);.
help me plaiz
|