I have a ready Bitmap image. Now I want to save & delete it. I m doing 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 Blackberry Storm device & simulator, which path to give instead of
"file:///store/home/user/StoredBitmap/"+picIndex+".bmp"
I have a created Bitmap. In outputStream, how to write it?
I m using Blackberry 4.7 (Version: 4.7.0.41). In its simulator, how to save the Bitmap? I m doing it for Blackberry Storm.
& for deleting that Bitmap, can we use File class or we've to use FileConnection class?