Convert Bitmap to File
Hope it will help u:
//create a file to write bitmap dataFile f = new File(context.getCacheDir(), filename);f.createNewFile();//Convert bitmap to byte arrayBitmap bitmap = your bitmap;ByteArrayOutputStream bos = new ByteArrayOutputStream();bitmap.compress(CompressFormat.PNG, 0 /*ignored for PNG*/, bos);byte[] bitmapdata = bos.toByteArray();//write the bytes in fileFileOutputStream fos = new FileOutputStream(f);fos.write(bitmapdata);fos.flush();fos.close();