开发者

Downloading and saving files with AIR for iOs

开发者 https://www.devze.com 2023-03-27 21:43 出处:网络
For a project we need to download and save pdf files on an IPAD device 开发者_如何学运维for offline use through an AIR for iOs application.

For a project we need to download and save pdf files on an IPAD device 开发者_如何学运维for offline use through an AIR for iOs application. After a lot of searching I haven't found much information on this subject. My question is, can it be done, and if so, can you provide us with some pointers to lead us in the right direction.

Thanks for your time!


Sure, first you check if you can access the web - can use a class like air.net.URLMonitor, if you can you can set up a URLStream instance.

You get data while its downloading the file using the progress event, write that out to a File instance using the FileStream class.

To display the PDF file you can use a StageWebView or HTMLLoader.

0

精彩评论

暂无评论...
验证码 换一张
取 消