Open downloaded .json file in service


#1

Hello everyone,
I have a problem with files that are downloaded with the plugin FileTransfer in documents directory:
cordova.file.documentsDirectory+“db.json”;

This is a json file, when I try to open it with $http give me error:
4 564026 error Error: NETWORK_ERR: XMLHttpRequest Exception 101
send@[native code]

how can i read this file?


#2

@duepiudue Hello Alex,
I am unable to download json files in my ionic1 app with filetransfer plugin can you share the steps and code please…