0 Replies Latest reply on May 5, 2010 7:20 AM by paullaur

    AIR + javascript : download to disc an image

    paullaur Level 1

      Hello,

       

      My AIR is HTML/ javascript based and intended to run on and off line.

       

      I managed to download, write to and read from disc, xml files using:

      air.File.applicationStorageDirectory.resolvePath

      XMLHttpRequest();

      air.FileStream

      air.FileMode

      Spry.Utils.stringToXMLDoc

       

      I'd like to reach the same result with a jpg or png image, in order to store and access it on the local system whenever the AIR app is off line.

      The above technique for a text file does not work.

      Do you know a solution ?

       

      Thanks for help,

       

      PL