BlackBerryForums.com : Your Number One BlackBerry Community
     

»Sponsored Links


BlackBerryApps.com Best Sellers



Reply
 
LinkBack Thread Tools
  (#1 (permalink)) Old
Raja86 Offline
New Member
 
Posts: 5
Join Date: Sep 2009
Model: 9500
PIN: N/A
Carrier: T-mobile
Question File Operation - 09-22-2009, 07:06 AM

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
   
Reply With Quote
Sponsored Links
Please Login or Register to Remove these Advertisements!

  (#2 (permalink)) Old
ptys Offline
Knows Where the Search Button Is
 
Posts: 26
Join Date: Jul 2008
Model: none
PIN: N/A
Carrier: none
Default 09-22-2009, 04:21 PM

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
   
Reply With Quote
  (#3 (permalink)) Old
Raja86 Offline
New Member
 
Posts: 5
Join Date: Sep 2009
Model: 9500
PIN: N/A
Carrier: T-mobile
Default 09-23-2009, 01:06 AM

thanks its working now.....
   
Reply With Quote
Reply


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





Copyright © 2004-2009 BlackBerryFAQ.com, BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of Research In Motion Limited.