I’m trying to download a file from a server and saving it to an emulated android folder, without success …
I’ve tried to download it with angular http module (writeSync/writeTextSync methods) and with nativescript http module (getFile method) but all I get is an empty file of non-null size or a null size file I can’t open.
the content-type of the file is : 'application/pdf’
the transfer-encoding : ‘chunked’ (which I think is the main problem but can’t be changed on the server side)
I can’t find sufficient information about that on the web, so I’m asking for help or any information about a similar issue.
Thank you for considering my problem