BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 09-18-2012, 10:53 PM   #1
fajriym
New Member
 
Join Date: Sep 2012
Model: 9**0
PIN: N/A
Carrier: Masih Cemen
Posts: 4
Question read .txt file from URL

Please Login to Remove!

hi advance, i'm newbie here
could you please to help me
my ex. case is:
i've uploaded .txt file to server
how can i read the .txt file from server URL and retrieve it to the app
thanks before
Offline  
Old 09-19-2012, 11:53 AM   #2
hrbuckley
BlackBerry Extraordinaire
 
Join Date: Jan 2006
Model: LEZ10
OS: 10.0.10
Carrier: Rogers CA
Posts: 1,704
Default Re: read .txt file from URL

You will simply need to open a connection to the server with the appropriate URL and read the text file from the input stream.

If you are targeting BlackBerry OS 5.0 or later you may use the ConnectionFactory. For OS versions before that you will have to use the HttpConnection.
__________________
My other Blackberry is a PlayBook.
Offline  
Old 09-20-2012, 09:10 PM   #3
fajriym
New Member
 
Join Date: Sep 2012
Model: 9**0
PIN: N/A
Carrier: Masih Cemen
Posts: 4
Default Re: read .txt file from URL

thanks before, but could you mind giving me an example code
i use blackberry OS 5
Offline  
Old 09-21-2012, 08:53 AM   #4
hrbuckley
BlackBerry Extraordinaire
 
Join Date: Jan 2006
Model: LEZ10
OS: 10.0.10
Carrier: Rogers CA
Posts: 1,704
Default Re: read .txt file from URL

There is example code in the API documentation for HttpConnection.
__________________
My other Blackberry is a PlayBook.
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

Similar Threads for: read .txt file from URL
Thread Thread Starter Forum Replies Last Post
BBFileScout - copy, move, rename, (un)zip or delete files & directories... emacf1 Aftermarket Software 332 01-14-2011 03:50 PM
File Manager Pro v1.5 Released TerraMobility Aftermarket Software 2 09-12-2009 07:19 PM
Sync Error....What could it be? kurrupt_1 General 8300 Series Discussion - Curve 7 11-22-2007 07:41 PM
meshNotes - read and edit .txt files jfisher General 8100 Series Discussion - Pearl 4 01-29-2007 10:00 PM


CBB60 Motor Run Capacitor 450VAC 10uF/20uF/30uF/40uF/50uF 4 Pins CE Standard picture

CBB60 Motor Run Capacitor 450VAC 10uF/20uF/30uF/40uF/50uF 4 Pins CE Standard

$12.99



BEEYUIHF 625Pcs 24Values Aluminum Electrolytic Capacitor Kit 10V-100V 1F-1000uF picture

BEEYUIHF 625Pcs 24Values Aluminum Electrolytic Capacitor Kit 10V-100V 1F-1000uF

$24.99



45/5 MFD uf Round Dual Run Capacitor HVAC AC 45+5 µF 370-440VAC 50/60Hz 5% picture

45/5 MFD uf Round Dual Run Capacitor HVAC AC 45+5 µF 370-440VAC 50/60Hz 5%

$20.99



CBB60 Capacitor 250VAC 60UF MFD For Motor Run 2 Wires Metallized Polypropylene picture

CBB60 Capacitor 250VAC 60UF MFD For Motor Run 2 Wires Metallized Polypropylene

$12.99



6.3V 10V 16V 25V 35V 50V 100V 400V SMD Aluminum Electrolytic Capacitor 1-1000 UF picture

6.3V 10V 16V 25V 35V 50V 100V 400V SMD Aluminum Electrolytic Capacitor 1-1000 UF

$155.59



Snap in Electrolytic Capacitor Large Electrolytic Can Capacitor 100uF - 100000uF picture

Snap in Electrolytic Capacitor Large Electrolytic Can Capacitor 100uF - 100000uF

$379.58







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