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

    hwo to delete files resides in the File.applicationStorageDirectory?

    ariv.l

      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);
                  fileStream.close();    
              }

                                   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