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

VoIP Phones Aastra 6731i
$29.99
VoIP Phones Aastra 6731i pictureNEW ShoreTel BB24-B Black 24 Button Office Telephone Expansion Unit VOIP
$170.0
NEW ShoreTel BB24-B Black 24 Button Office Telephone Expansion Unit VOIP picture New Polycom Spectralink 8440 Bk Wireless Phone 2200-37150-001 VoIP Handset
$300.0
 New Polycom Spectralink 8440 Bk Wireless Phone 2200-37150-001 VoIP Handset pictureSNOM 300 VoIP Business Phone
$35.0
SNOM 300 VoIP Business Phone pictureLot of 15 Cisco CP-7931G VOIP Unified Business Phones 7900 Series *Tested*
$199.0
Lot of 15 Cisco CP-7931G VOIP Unified Business Phones 7900 Series *Tested* picture






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