Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
New Contributor
Posts: 5
Registered: ‎10-11-2012
My Device: Bold 9900
My Carrier: Mobistar

download file to the mobile ( not SDCard)

[ Edited ]

Hi everybody,

 

As I said in the title, I want to download and saving a file inside my application folder or anywhere else but I don't know how to do it .

 

this code doesn't work :

 

            dbFullName = "db.sqlite";

            dbPath = "file:///store/home/user/" + dbFullName;

 

            FileConnection fconn = (FileConnection) Connector.open(dbPath, Connector.READ_WRITE);
            
            if (!fconn.exists()) {
                fconn.create();
            }

 

I get a FileIOException with error code 1003

Highlighted
New Contributor
Posts: 5
Registered: ‎10-11-2012
My Device: Bold 9900
My Carrier: Mobistar

Re: download file to the mobile ( not SDCard)

Anyone has an idea ?