java - Parse CSV files from a tornado web service within an Android app -


i have tornado web service returns link after creating csv file shown below.

http://10.0.2.2:8000/uploads/16165159gyjfimayzsslemn/16165159gyjfimayzsslemn.csv 

also have outputted url within android application successfully. question how parse data of file using url shown above. have tried numerous ways , not done. can 1 please me solve problem. code have far follows.

also have referred this post well, still no success.

    httpclient httpclient = new defaulthttpclient();     httppost httppost = new httppost(modifyurl);        httpresponse httpresponse = httpclient.execute(httppost);     responseentity = httpresponse.getentity();     transformedimageurl = entityutils.tostring(responseentity);      url url = new url(transformedimageurl);     inputstream stream = url.openstream();     bufferedinputstream bis = new bufferedinputstream(stream);     bytearraybuffer baf = new bytearraybuffer(200);      nt current = 0;      while((current - bis.read()) != -1){            baf.append((byte) current);     }      string stocktext = new string(baf.tobytearray());     string[] tokens = stocktext.split(",");     string testdata = tokens[0]; 

thank time


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -