Ejemplo n.º 1
0
        //将本地sqlite数据库文件上传到服务器
        public static void UploadLocalDB()
        {
            string testdbPath = "C:\\db\\test.db";

            byte[] byte_testdb    = MyFileHelper.File2Bytes(testdbPath);
            string hexstring_file = MyByteStringHelper.ByteToHexStr(byte_testdb);
            string data           = JsonConvert.SerializeObject(hexstring_file);

            httpRequestHelper.PostRequest("http://mzhdemo.xyz:1996/api/ClientToServer//UploadDatabase", data, "application/json");
        }