database - how do i download (.sqlite) file from the url and save it in isolated storage in windows phone 8 apps -


I have recently tried to make database related Windows Phone 8 applications because I want dynamically update content and when I also update it, even in my application.,

so that I decided to keep all my data in the DB (.sqlite) file and uploaded it to the server

Note that I have not created a database in local and I have a SQL file I will try to download from the server. From that Sklit file I will get the database table.

I need it

1) How to download (.sqlt) server via server URL (www.example.com/folder/sample.sqlite)

2) How to save that sqlite file in local or separate storage

I have searched and have received some sampling from online, but it will create the database all in local .

So please give me some solution how to download .cqlite file directly from URL local.,

OK now I understand the problem is that the file does not include the link, you must first use GetResponse () and then retrieve the response.

You have to expand your to work WebClient (again):

  public static class extension {public static work   

After that, you only have to make a little change in your code:

  public static async Tasks & lt; DownloadStatus & gt; DownloadFileSimle (URI file acronym, string filename) {{WebRequest request = WebRequest.Create (fileAdress); If (request! = Null) {WebResponse response2 = Wait for the request. GetResponseAsync (); As I have tried to work on it and the file has been downloaded from its content.       P> Hope it helps.   

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -