BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 03-05-2010, 05:31 AM   #1 (permalink)
New Member
 
Join Date: Mar 2010
Location: FRANCE
Model: 7100T
PIN: N/A
Carrier: INGENIEUR
Posts: 3
Post Thanks: 0
Thanked 0 Times in 0 Posts
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


Thread Tools

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

IBM Wheelwriter 30 SERIES II Typewriter 6787 w/new ribbon, manual and oem cover
$249.99
IBM Wheelwriter 30 SERIES II Typewriter 6787 w/new ribbon, manual and oem cover pictureLot of 10 IBM 200W Power Supply AC6210LF SurePOS 4840-533 OEM
$334.8
Lot of 10 IBM 200W Power Supply AC6210LF SurePOS 4840-533 OEM pictureOEM RIBBON for IBM 463 BLACK # 1 299 463
$5.0
OEM RIBBON for IBM 463  BLACK # 1 299 463 pictureOEM Original IBM High Yield Correctable BLACK Film Ribbon Reorder No. 1 299 095
$6.0
OEM Original IBM High Yield Correctable BLACK Film Ribbon Reorder No. 1 299 095 picture(5) lot IBM 1337761 Genuine OEM Easystrike Correctable Ribbon Cassette - NOS
$9.95
(5) lot IBM 1337761 Genuine OEM Easystrike Correctable Ribbon Cassette - NOS picture






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