Android Utility to send sqlite db to server

后端 未结 1 1991
野趣味
野趣味 2020-12-17 05:54

In my application I want to send data stored in the local sqlite database to server\'s sqlserver database. Is there any utility for android to directly send the .db file and

相关标签:
1条回答
  • 2020-12-17 06:42

    When you create the database you are specifying the database name (for instance products.db). If your application package name is com.example.yourapplicationpackage, you can access the file using the path: /data/data/com.example.yourapplicationpackage/databases/products.db

    Then you can send that file just like any other file to your server (use a POST request). On the server side, you need classes to read a SQLite 3 database file, this should not be hard to find.

    0 讨论(0)
提交回复
热议问题