Fetch data in Json array and send it to server
NickName:Qamar Din Ask DateTime:2016-02-08T14:41:24

Fetch data in Json array and send it to server

I am developing an android application where I am fetch all the data in j son array. Now i want to send said Json array to MySQL database on server.

db.open();     
ArrayList<HashMap<String, String>> arrayList = db.Record();    
Gson gson = new Gson();   
String jsonPesan = gson.toJson(arrayList);  
db.close();

Copyright Notice:Content Author:「Qamar Din」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/35263729/fetch-data-in-json-array-and-send-it-to-server

Answers
Vasant 2016-02-08T06:47:31

You need to make web-service ,you can post your data to server using webservice.\n\nHow to send data to MySQL DB without using JDBC , PHP or any other webservice? ",


More about “Fetch data in Json array and send it to server” related questions

Fetch data in Json array and send it to server

I am developing an android application where I am fetch all the data in j son array. Now i want to send said Json array to MySQL database on server. db.open(); ArrayList&lt;HashMap&lt;String,

Show Detail

Sending an array to a server to fetch some data with React Native

I am trying to do fetch a data from the server with given datas. I am using the following code : const details = { 'function': 'getUsers', }; const formBody = Object.keys(de...

Show Detail

Send data on a JSON server using react

am trying to send a post request to a JSON server using react. I've captured the data from a form using react formik. When I try to make a post request, the server only creates an id but the rest o...

Show Detail

How to send JSON data to a server in android?

With all the old methods been deprecated such as http post , response ,http client, string entity etc, i want to know how can i post json data to a server in android in 2017. My app is supposed to

Show Detail

How to send/receive data to/from server via JS fetch

I'm new to fetch and I'm trying to convert $ajax into fetch without await, async.. (I didn't make it till there). I'm using Express for the server. The fundamental concept of fetch/promise is uncle...

Show Detail

How to send JSON data to the server in Android

I want to send json data to the server but I am not able to do it. I have pasted my payload of json data below please check it and help me. In my Json Data payload so many array and object which cr...

Show Detail

Ajax send JSON and fetch data using PHP

I have jquery code output json data and I need to send this data to to url and fetch using php Code: JSON.stringify(showtimes) Output: [{"show_id":"1","movie_id":"20","cinema

Show Detail

send array with JSON

i'm using this code for post text of option tag : $("#major_names").change(function () { $.post('find_lesson.php', { dars:$("#major_names option:selected").text() }, function(data){ ...

Show Detail

Sending data to PHP server with Fetch API (POST method and JSON preferred)

I'm trying Fetch API for the first time and I have problems sending POST data to a PHP server. I'm moving away from $.ajax and trying pure javascript solutions to communicate with different servers (

Show Detail

How to send array buffer data along with string/json to NodeJS server

I need to send image data (read as array buffer) from client page, along with additional string/json information generated by page, to NodeJS server in one request. I need both parts to be processe...

Show Detail