BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 03-05-2010, 05:31 AM   #1
delviano
New Member
 
Join Date: Mar 2010
Location: FRANCE
Model: 7100T
PIN: N/A
Carrier: INGENIEUR
Posts: 3
Default 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
Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


JOHNSON CONTROLS CO2 Temperature Transmitter CD-WA0-00-2 / CDWA0002 (BRAND NEW) picture

JOHNSON CONTROLS CO2 Temperature Transmitter CD-WA0-00-2 / CDWA0002 (BRAND NEW)

$99.99



Johnson Controls MAP1850 Gateway TL-MAP1850-0C picture

Johnson Controls MAP1850 Gateway TL-MAP1850-0C

$399.99



JOHNSON CONTROLS M300CJ CONTROL MODULE picture

JOHNSON CONTROLS M300CJ CONTROL MODULE

$49.95



Johnson Controls MS-BACEOL-0 End-Of-Line Terminator picture

Johnson Controls MS-BACEOL-0 End-Of-Line Terminator

$45.00



JOHNSON CONTROLS NS-BTB7002-0 / NSBTB70020 (NEW IN BOX) picture

JOHNSON CONTROLS NS-BTB7002-0 / NSBTB70020 (NEW IN BOX)

$120.00



Johnson Controls MS-FEC1621-0 Programmable Controller - FEC 1621 - Metasys 1611 picture

Johnson Controls MS-FEC1621-0 Programmable Controller - FEC 1621 - Metasys 1611

$79.99







Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.