BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 08-17-2009, 01:05 AM   #1
anu_u
New Member
 
Join Date: Jul 2009
Model: 8120
PIN: N/A
Carrier: Airtel
Posts: 6
Default How to read html files from resource?

Please Login to Remove!

Hi,
I am developing an application wich renders html pages using browser content. My html files are in resource. I am reading those files and storing in device memory. And passing the filecommection in renderingSession.getBrowserContent(). Is it possible to directly use the files from resource?

Thanks.
Offline  
Old 08-21-2009, 07:22 PM   #2
ptys
Knows Where the Search Button Is
 
Join Date: Jul 2008
Model: none
PIN: N/A
Carrier: none
Posts: 26
Default

Code:
InputStream is = getClass().getResourceAsStream("/package/name/page.html");
Quote:
Originally Posted by anu_u View Post
Hi,
I am developing an application wich renders html pages using browser content. My html files are in resource. I am reading those files and storing in device memory. And passing the filecommection in renderingSession.getBrowserContent(). Is it possible to directly use the files from resource?

Thanks.
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


3/4

3/4" PT AC 110V Electric Solenoid Valve Brass Water Air Gas

$28.47



MAC Boost Control Solenoid Valve 1/8'' 35A-ACA-DDBA-1BA DC12V 5.4W picture

MAC Boost Control Solenoid Valve 1/8'' 35A-ACA-DDBA-1BA DC12V 5.4W

$23.37



U.S. Solid 1/4

U.S. Solid 1/4" Brass Electric Solenoid Valve DC 12V VITON Water Air Fuel N/C

$18.89



U.S. Solid 1/4

U.S. Solid 1/4" Pneumatic Electric Solenoid Valve 5 way 2 Position DC 24V, Air

$17.84



1/4

1/4" Electric Solenoid Valve Water Oil Air Gas Welders 110/120 volt AC B20N/V

$24.95



NEW NO BOX Dormeyer 8936-11 Solenoid Service 115V 75121-0011 W7-2 picture

NEW NO BOX Dormeyer 8936-11 Solenoid Service 115V 75121-0011 W7-2

$49.95







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