BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 09-22-2009, 06:06 AM   #1
Raja86
New Member
 
Join Date: Sep 2009
Model: 9500
PIN: N/A
Carrier: T-mobile
Posts: 5
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
ptys
Knows Where the Search Button Is
 
Join Date: Jul 2008
Model: none
PIN: N/A
Carrier: none
Posts: 26
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
Raja86
New Member
 
Join Date: Sep 2009
Model: 9500
PIN: N/A
Carrier: T-mobile
Posts: 5
Default

thanks its working now.....
Offline  
Closed Thread



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


Automation Direct Potentiometer Part No. ECX2300-10K picture

Automation Direct Potentiometer Part No. ECX2300-10K

$30.00



1pcs New MOELLER Potentiometer M22-R4K7 4.7k Ohms picture

1pcs New MOELLER Potentiometer M22-R4K7 4.7k Ohms

$31.26



NOBLE 100K Ohm 15K Loundess Tap 4-Gang Quad Potentiometer picture

NOBLE 100K Ohm 15K Loundess Tap 4-Gang Quad Potentiometer

$15.00



Honeywell 53C22K POTENTIOMETER #K-2211 picture

Honeywell 53C22K POTENTIOMETER #K-2211

$40.00



10 turn Potentiometer 3590S Wirewound Variable Resistor Precision multi-turn POT picture

10 turn Potentiometer 3590S Wirewound Variable Resistor Precision multi-turn POT

$51.49



US Stock 10 Units 10K B10K OHM Linear Taper Rotary Potentiometer POT Blue Knob picture

US Stock 10 Units 10K B10K OHM Linear Taper Rotary Potentiometer POT Blue Knob

$9.39







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