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