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