File download is not working for windows phone

2 posts, 0 answers
  1. Harsha
    Harsha avatar
    2 posts
    Member since:
    Feb 2011

    Posted 14 Apr 2015 Link to this post

    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.



  2. Tsvetina
    Tsvetina avatar
    2102 posts

    Posted 17 Apr 2015 Link to this post

    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.


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

Back to Top