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

Fortinet FortiFone-675i / FON-675i VOIP SIP Phone, 10/100/1000 Lan, 10/100/10...
$375.0
Fortinet FortiFone-675i / FON-675i VOIP SIP Phone, 10/100/1000 Lan, 10/100/10... picture3 ClearOne Converge Pro VH20 Conferencing VoIP System
$45.0
3 ClearOne Converge Pro VH20 Conferencing VoIP System pictureAvaya 9620 IP VOIP Business Office Phone w/ Stand, 54 Working Units
$2000.0
Avaya 9620 IP VOIP Business Office Phone w/ Stand, 54 Working Units pictureCisco IP Phone CP-7975G Unified VOIP
$55.0
Cisco IP Phone CP-7975G Unified VOIP pictureLot of (5) Avaya Digital 12 Button 5410 VOIP Office Telephone
$60.99
Lot of (5) Avaya Digital 12 Button 5410 VOIP Office Telephone picture






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