This is a migrated thread and some comments may be shown as answers.

File download is not working for windows phone

1 Answer 32 Views
Windows Devices
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Harsha
Top achievements
Rank 1
Harsha asked on 14 Apr 2015, 11:41 AM

Hi all,

      I have developed an application which has this functionality of downloading a pdf file from server side( from asmx webservice). I can't directly link to the file on the server so downloading the file from the asmx. the problem is that i am able to downloading the binary data of file and create file in devices successfully for android and ios but when comes to windows file creation is not working with binary data.

someone please give me an option how to solve the problem please.

thanks

 

1 Answer, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 17 Apr 2015, 01:56 PM
Hello Harsha,

I assume you are using the File plugin to write to a file in your app. Unfortunately, as the plugin ReadMe states, the FileWriter.write(blob) method is not supported in Windows Phone. The authors may extend it in the future to support this feature but we cannot tell if and when.

One option to resolve the problem is to host the files somewhere else where they are downloadable as files. If they aren't too large, you can consider storing them in Telerik Backend Services

Alternatively, if you have knowledge of C#, you can research what is needed in order to extend the File plugin to support writing a file on Windows Phone. After you modify the source code provided in the plugin repository, you can import it as a custom plugin in AppBuilder and use it in your app.

Regards,
Tsvetina
Telerik
 

Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

 
Tags
Windows Devices
Asked by
Harsha
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Share this question
or