Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

save a pdf on iPhone

Hello, I'm able to download and visualize a PDF file on my mobile app (iphone), ok, but it's possible to save the file for a next consultation? Or I need to re-download the PDF file each time?
Becouse I'm updating the file very frequently.

Thank you in advance!

— asked July 30th 2010 by Stefano Di Luca
  • file
  • filesystem
  • filesystem.getfile
0 Comments

1 Answer

  • You might try to use xhr to download the file and display it after it's downloaded.

    http://github.com/appcelerator/titanium_mobile/blob/master/demos/KitchenSink/Resources/examples/xhr_filedownload.js

    On the next time the app opens you could check if the file exists and display it from the device.

    — answered July 30th 2010 by Dan Tamas
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.