BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 09-22-2009, 06:06 AM   #1 (permalink)
New Member
 
Join Date: Sep 2009
Model: 9500
PIN: N/A
Carrier: T-mobile
Posts: 5
Post Thanks: 0
Thanked 0 Times in 0 Posts
Question File Operation

Please Login to Remove!

I need to open a image file on BlackBerry simulator and get the data in a byte array..

am trying in this way but its not working please help me....

FileConnection fc = (FileConnection)Connector.open("file:///Blue hills_1.jpg");
if (!fc.exists())
{
Dialog.alert("input");
fc.create();
}
}catch (IOException e)
{
System.out.println("hdfj");
}

i think there is a problem at the path please suggest me..

Thank u for the replay
Offline  
Old 09-22-2009, 03:21 PM   #2 (permalink)
Knows Where the Search Button Is
 
Join Date: Jul 2008
Model: none
PIN: N/A
Carrier: none
Posts: 26
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Maybe you cannot create files directly at the root /. Try maybe a known existing directory like file:///store/home/user instead.

Quote:
Originally Posted by Raja86 View Post
I need to open a image file on BlackBerry simulator and get the data in a byte array..

am trying in this way but its not working please help me....

FileConnection fc = (FileConnection)Connector.open("file:///Blue hills_1.jpg");
if (!fc.exists())
{
Dialog.alert("input");
fc.create();
}
}catch (IOException e)
{
System.out.println("hdfj");
}

i think there is a problem at the path please suggest me..

Thank u for the replay
Offline  
Old 09-23-2009, 12:06 AM   #3 (permalink)
New Member
 
Join Date: Sep 2009
Model: 9500
PIN: N/A
Carrier: T-mobile
Posts: 5
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

thanks its working now.....
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

JDSU TESTPOINT TS-170 17-SLOT MAINFRAME CHASSIS Innocor N550-0090 TEST POINT
$99.0
JDSU TESTPOINT TS-170 17-SLOT MAINFRAME CHASSIS Innocor N550-0090 TEST POINT pictureTektronix TLA7016 Main Frame with 6 Modules of (1) TLA7BB4 and (5)TLA7AA4
$4299.99
Tektronix TLA7016 Main Frame with 6 Modules of (1) TLA7BB4 and (5)TLA7AA4 pictureAgilent VXI-C System E1421B Mainframe with E1406A Command Module & E1411B DMM
$280.0
Agilent VXI-C System E1421B Mainframe with E1406A Command Module & E1411B DMM pictureAMAT 0190-02362 / 0130-02362 003 Mainframe Interlock 1 Relays
$369.0
AMAT  0190-02362 / 0130-02362 003  Mainframe Interlock 1 Relays pictureAMAT 0190-02363 / 0130-02363 001 Mainframe Interlock 2 Relays
$399.0
AMAT  0190-02363 / 0130-02363 001  Mainframe Interlock 2 Relays picture






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