Note that there are some explanatory texts on larger screens.

plurals
  1. POWhy does Android receive corrupt data?
    primarykey
    data
    text
    <h1> **on Request SERVER preparing and SENDING whole DATA (json) to Android Client in response**</h1> <blockquote> <p><code>{"property":[{"prop_Age":0,"prop_Area":300,"prop_Area_SqFeet":2700,"prop_Area_Unit":" Yards","prop_AvailableFor":"Sale","prop_Desc":"Ashok Vihar Phase-1, Individual House for Sale, Corner Freehold 300g Plot in (i) Block Ashok Vihar Phase I @rs 15 Cr","prop_ID":341,"prop_LastUpdatedDate":"","prop_Lease_ID":0,"prop_NumOfBaths":3,"prop_NumOfBeds":3,"prop_OnFloor":0,"prop_PostedDate":"2011-08-01","prop_Price":1.5E8,"prop_Title":"Ashok Vihar Phase-1, Individual House fo","propertyImages":[{"imageID":1042,"imageUrl":"http://localhost/barun/images/thumb.jpg","propertyID":341,"type":"thumb"},{"imageID":1043,"imageUrl":"http:////localhost/barun/images/gallery.jpg","propertyID":341,"type":"gallery"},{"imageID":1044,"imageUrl":"http:////localhost/barun/images/full.jpg","propertyID":341,"type":"full"}],"propertyLocations":{"proploc_AddressLine1":"ashok vihar phase .............................</code></p> </blockquote> <p><br> *<em>ANDROID RECEIVE DATA and read data from response but not received original content <br> some data truncate from original response *</em></p> <pre><code>12-30 17:07:44.599: I/System.out(4348): Buffer data is{"property":[{"prop_Age":0,"prop_Area":300,"prop_Area_SqFeet":2700,"prop_Area_Unit":" Yards","prop_AvailableFor":"Sale","prop_Desc":"Ashok Vihar Phase-1, Individual House for Sale, Corner Freehold 300g Plot in (i) Block Ashok Vihar Phase I @rs 15 Cr","prop_ID":341,"prop_LastUpdatedDate":"","prop_Lease_ID":0,"prop_NumOfBaths":3,"prop_NumOfBeds":3,"prop_OnFloor":0,"prop_P ostedDate":"2011-08-01","prop_Price":1.5E8,"prop_Title":"Ashok Vihar Phase-1, Individual House fo","propertyImages":{"phoneNumber1":0,"phoneNumber2":0,"usr_Email":"","usr_ID":341,"usr_����������������������������������������� ����������������������������������������������������������������������������������������������������������������������������� ����������������������������������������������������������������������������������������������������������������������������� ����������������������������������������������������������������������������������������������������������������������������� ����������������������������������������������������������������������������������������������������������������������������� �����������������������������������������������������������������������������������������������������������������������������` </code></pre> <p><strong>ANDROID CODE TO RECEIVE DATA:</strong></p> <pre><code>int bytesRead = -1; StringBuffer str = new StringBuffer(); byte[] bufferTest = new byte[1*1024]; try { while ((bytesRead = instream.read(bufferTest)) &gt;= 0) { String line = new String(bufferTest); str.append(line.toString()); } } catch (IOException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } System.out.println("Buffer data is" + str); </code></pre> <p>Why does Android client receive data in corrupted format?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload