BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 05-17-2005, 01:22 AM   #1 (permalink)
New Member
 
Join Date: May 2005
Model: 7230
Posts: 4
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default How to get a Input stream?????

Please Login to Remove!

Hi!
I am a newbie to this Blackberry. I am trying to get a inputstream using the following code but in vain....

//String file = "male.spx";
//Class c = this.getClass();
//System.out.println("Got the class---" + c);

InputStream is = Class.forName("com.rim.samples.device.midletdemo.M idletDemo").getResourceAsStream("/res/male.spx");
//InputStream is = c.getResourceAsStream("/"+"male.spx");

//InputStream is = new FileInputStream(file);
//System.out.println("Got the stream " + is);


I am getting Null in "is".

Please help me ...

Thanks & regards
Lalit
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

DELL 725-10263 / 331-1310 / KT74N Lamp manufactured by DELL
$217.54
DELL 725-10263 / 331-1310 / KT74N Lamp manufactured by DELL pictureDell OEM 3010 series 4 Color Toner Set CMYK, JH565, TH204, XH005, WH006 - New
$199.99
Dell OEM 3010 series 4 Color Toner Set CMYK, JH565, TH204, XH005, WH006 - New pictureGXM1W Dell Optiplex 7010 SFF Socket LGA1155 OEM Motherboard tested
$29.99
GXM1W Dell Optiplex 7010 SFF Socket LGA1155 OEM Motherboard tested pictureGenuine OEM Dell Ink Cartridge Color Black 7Y745 7Y743 Lot Of 4 +
$39.0
Genuine OEM Dell Ink Cartridge Color Black 7Y745 7Y743 Lot Of 4 + pictureDELL 725-BBBQ Lamp manufactured by DELL
$166.71
DELL 725-BBBQ Lamp manufactured by DELL picture






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