1 Reply Latest reply on Jul 4, 2008 3:40 AM by anirudhs

    download  a dynamically created file from the server

    rajeshk08
      I am having a critical issue. Please help on this....

      Right now i am loading the php page in the air HTML Loader, the PHP page is coming up properly, but when i click the download button in that page, the download is not initiated.

      I am using the below php code in the server end.

      header("Content-type: application/force-download");
      header('Content-Disposition: inline; filename="'.$fileName.'"');
      header("Content-Transfer-Encoding: Binary");
      header("Content-length: ".filesize($file));
      readfile("$file");

      Note: The file i am downloading does not exist,it is created dynamically.

      In the AIR release notes 1.0.1, they specified flat or gzip not supported in HTTP response.

      Is there any workaround to support this feature or some other solutions

      Please help this