I have a finished bitmap image. Now I want to save and delete it. I do it like ..
FileConnection fconn = (FileConnection)Connector.open("file:///store/home/user/StoredBitmap/"+picIndex+".bmp",Connector.READ_WRITE);
if(!fconn.exists())
fconn.create();
OutputStream out = fconn.openOutputStream();
if(image == null)
System.out.println(" image null ");
else
{
out.write(byte[]);
out.close();
}
fconn.close();
For a Blackberry Storm device and simulator, which path to give instead
"file:///store/home/user/StoredBitmap/"+picIndex+".bmp"
I have created Bitmap. In outputStream, how to write it?
I am using Blackberry 4.7 (Version: 4.7.0.41). In your simulator, how to save a bitmap? I do it for Blackberry Storm.
& to remove this bitmap, is it possible to use the File class or use the FileConnection class?
source
share