0 Replies Latest reply on Sep 3, 2012 7:47 AM by MixMastaJames

    Download file from website and save to disk

    MixMastaJames

      I'm trying to downlaod images from my website and save them to my local drive, and I can't seem to get it to work.  This is what I have that isn't working:

       

      var urlFile:File = new File(_dataXML.thumbnail.toString()); // The full http:// url to the file on the server

      var localFile:File = new File(gFolder + "\\" + _dataXML.file.toString()); // The user's folder and the file name to save it to

      urlFile.copyTo(localFile, true);

       

      Is there another way to do this that I don't know about?  It says it can't find the source file (the urlFile)