0 Replies Latest reply on Nov 28, 2011 3:39 AM by balasubramaniyan.S

    Resumable Downloads with AIR

    balasubramaniyan.S Level 1

      Hi

       

      I am trying to download more than 1GB file from server.

      Whenever connection available the apps need to download the file. AIR should have auto pause and resume based connection.

       

      My sample code useed for resume,

      var header0:URLRequestHeader = new URLRequestHeader('range', 'bytes='+bytesLoaded+'-'+bytesTotal);
      var request:URLRequest = new URLRequest(Path);
      request.requestHeaders.push(header0);

       

      Sample i followed

      http://mariusht.com/blog/2010/03/10/resumable-file-downloader-simple-air-app/

      http://richapps.de/?p=113

       

      It doesn't work properly. Also in the URLRequest.requestHeaders adobe document mentioned

      The FileReference.upload() and FileReference.download() methods do not support the URLRequest.requestHeaders property.

       

      i confused, Is it possible to do in AIR? If yes, How can make it resumable downloader in Flex/AIR?

       

      Thanks

       

      Regards

      Balasubramaniyn.S