Wish you all a very happy new year
On the very first day of this year I'm facing a problem while reading an image file from file:///store/home/user/pictures/*. I've tried my code on simulators and its running fine but its not running on device (tried on 8820 and bold).
FileConnection fc = (FileConnection) Connector.open("file:///store/home/user/pictures/abc.png", Connector.READ);
DataInputStream in = fc.openDataInputStream();
int length = (int)fc.fileSize();
byte arr = new byte[length];
My app is throwing exception while opening DataInputStream, and if I try to retrieve size of any file in same location then again it throws exception.
Please tell me whether it is possible to read files present in this location or not!!!