BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 07-25-2008, 05:16 AM   #1 (permalink)
New Member
 
Join Date: Jul 2008
Model: 8120
PIN: N/A
Carrier: Airtel
Posts: 8
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default How to Access File System (BB Specific APIs)

Please Login to Remove!

Hi everyone ..

I am trying to save/store a doc or pdf file to the local file system on a BB device. I know how to do this using persistent storage but wish to know is there any other way by which I can do this. I want to stick to the BB specific APIs (net.rim.*.*) and cannot use classes like FileConnection that fall under javax. Please help me out on this as I seem to get no clue of doing this.

Thanks,
Omi
Offline  
Old 07-25-2008, 06:37 AM   #2 (permalink)
Talking BlackBerry Encyclopedia
 
Join Date: Apr 2008
Location: Germany, BW
Model: -
PIN: N/A
Carrier: -
Posts: 310
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

To access file storage use FileConnection. There are no other ways.

By the way BB API is extending the standard J2ME/Java classes, so even if you want you cannot avoid all of them.

To open any connection the calss Connector is used which is part of javax.microedition.io, so...
Offline  
Old 07-25-2008, 06:42 AM   #3 (permalink)
BlackBerry Extraordinaire
 
Join Date: Jan 2006
Model: LEZ10
OS: 10.0.10
Carrier: Rogers CA
Posts: 1,704
Post Thanks: 20
Thanked 77 Times in 68 Posts
Default

That is a strange constraint, why can't you use FileConnection? While it is true that RIM has replace some J2ME functions with their own code, it is unlikely they would provide duplicate APIs without a very good reason.
Offline  
Old 07-28-2008, 03:57 AM   #4 (permalink)
New Member
 
Join Date: Jul 2008
Model: 8120
PIN: N/A
Carrier: Airtel
Posts: 8
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ok .. Thank you very much for your prompt replies.
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

180pcs 18 Values 50~300V Triode Transistor TO-92 NPN Assortment Kit NEW
$2.99
180pcs 18 Values 50~300V Triode Transistor TO-92 NPN Assortment Kit NEW picture200PCS TO-3P TO-247 White 3MM M3 Plastic Washer Insulation silicone Bushing NEW
$3.98
200PCS TO-3P TO-247 White 3MM M3 Plastic Washer Insulation silicone Bushing NEW picture180pcs 18 Values Triode Transistor TO-92 NPN PNP Assortment Kit Set 50~300V
$3.39
180pcs 18 Values Triode Transistor TO-92 NPN PNP Assortment Kit Set 50~300V picture(1PCS) HFA3096BZ IC TRANSISTOR ARRAY UHF 16-SOIC 3096 HFA3096
$6.5
(1PCS) HFA3096BZ IC TRANSISTOR ARRAY UHF 16-SOIC 3096 HFA3096 picture(1PCS) HFA3134IHZ96 IC TRANS ARRAY NPN MATCH SOT23-6 3134 HFA3134
$4.14
(1PCS) HFA3134IHZ96 IC TRANS ARRAY NPN MATCH SOT23-6 3134 HFA3134 picture






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