There could be a case that while developing application in Flash or Flex for mobile devices, you need to capture a bitmap image and save it to the Mobile File system. While it is possible directly through the CameraRoll Class, it doesn’t have the option to save the file with a pre-defined name. This makes it difficult to access the image later.
Though there are few workarounds available for this where people have mentioned to access get the last modified image from the CameraRoll just after saving it, I don’t find it worth.
So as an alternative you could save the image to the mobile file system by writing BitmapData’s ByteArray. So in order to do so you can follow one of the following methods for getting BitmapData: