2 Replies Latest reply on Dec 21, 2011 3:06 AM by devInterama

    Save file on Android




      I'm trying to save an image on Android. But i get only the path '/mnt/sdcard/...'. I would like to save in a custom folder like '/Root/myapp/img.png'. but how?


      This is what i do:

      var f:File = File.documentsDirectory.resolvePath('imagem.png');
      var bytes:ByteArray = new PNGEncoder().encode(ImageSnapshot.captureBitmapData(uiCanvas));
      f.save(bytes, 'imagem.png');


      But documentsDirectory or any other has the same effect.