简体   繁体   中英

Using Nativescript and Angular 2 how can I download a file and save to the device?

As in the title: Using Nativescript and Angular 2 how can I download a file and save to the device?

It seems there is a getFile function within http module however this doesn't seem available within Angular 2 ( https://docs.nativescript.org/cookbook/http )

res.blob() also doesn't seem to work?

getFile should work as expected in {N} + ng2 application as shown here

Basic examples on how to create, read , update and delete files and folders in NativeScript + Angular-2 application

file-system in NativeScript + Angular-2

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM