0 Replies Latest reply on Oct 25, 2010 1:03 AM by ariv.l

    hwo to delete files resides in the File.applicationStorageDirectory?


      i created a method saveLocally() to store the images temporarily which are obtained from the server.


            saveLocally(fileName:String, data:ByteArray):void
                  var file:File = File.applicationStorageDirectory.resolvePath(fileName);
                  var fileStream:FileStream = new FileStream();
                  fileStream.open(file, FileMode.WRITE);
                  fileStream.writeBytes(data, 0, data.length);

                                   these files are stored in "… C:\Documents and Settings\Administrator\Application Data\ImageGallery\Local Store"


      after i closed my application the files which are stored in the Local Store Directory are still