Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6671181
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:21:26+00:00 2026-05-26T03:21:26+00:00

I am using WebService to Get Data, but I only get 9 records of

  • 0

I am using WebService to Get Data, but I only get 9 records of 62, I think this is problem of Buffer size, am I Right?

I use following code to get Data from WebService, and Webserivce is developed in php.

public JSONObject PostConnectionObject(String strUrl,ArrayList<NameValuePair> alstNameValuePair) {
        InputStream mInputStream = null;
        try {
            //This is the default apacheconnection.
            HttpClient mHttpClient = new DefaultHttpClient();

            //Pathe of serverside 
            HttpPost mHttpPost = new HttpPost(strUrl);
            if(alstNameValuePair!=null)
            { 
                //post the valur you want to pass.
                 mHttpPost.setEntity(new UrlEncodedFormEntity(alstNameValuePair));
            }

            //get the valu from the saerverside as response.
            HttpResponse mHttpResponse = mHttpClient.execute(mHttpPost);
            HttpEntity mHttpEntity = mHttpResponse.getEntity();
            mInputStream = mHttpEntity.getContent();

          } 
          catch (Exception e) {
             // TODO Auto-generated catch block
             Log.e(strTAG,"Error in HttpClient,HttpPost,HttpResponse,HttpEntity");
          }

         String strLine = null;
         String strResult = null;

        //convert response in to the string.
        try {
              BufferedReader mBufferedReader = new BufferedReader(new InputStreamReader(mInputStream,"iso-8859-1"), 8);
              StringBuilder mStringBuilder = new StringBuilder();
              while((strLine = mBufferedReader.readLine()) != null) {
                mStringBuilder.append(strLine + "\n");
              }
              mInputStream.close();
            strResult = mStringBuilder.toString();
            System.out.println("Value of Result :"+strResult);
           } 
           catch (Exception e) {
              // TODO Auto-generated catch block
              //System.out.println("Error in BufferedReadering");
              Log.e(strTAG,"Error in BufferedReadering");
            }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T03:21:27+00:00Added an answer on May 26, 2026 at 3:21 am

    The documentation for InputStreamReader does not provide a way to set the size of the buffer it uses. The size of the buffer is up to the implementor.

    In your code you use a buffer size of 8 for the BufferedReader(). So you could change the size of the BufferedReader’s buffer by changing the 8 (second param of BufferedReader()).

    I do not think that will help though. BufferedReader still returns entire lines even when its buffer size is much smaller than the length of the lines.

    Your code looks straight forward and I suspect that the data is never being sent.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using the following code do get all data records from a MS
I am trying to upload a pdf file using webservice api. But this api
I am trying to call a webservice using ssl. How do i get the
im using the webservice component in my flex app but find im using the
Previously i have used restful wcf webservices to get the data from server.But now
So, I'm using JQuery AjaxQueue to do stuff, but the problem I have is
I have this data structure: <estates version=0.1> <provider name=Foo> <estate id=12345678> <description>aaa</description> <size>300</size> </estate>
I'm trying to get the hand on JQuery and JSON using an ASP.NET webservice.
I plan on using JSONP to call an external web service to get around
I want to consume a web service using jquery's get function. There is no

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.