BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 03-18-2010, 11:46 AM   #1 (permalink)
New Member
 
Join Date: Mar 2010
Model: 7100t
PIN: N/A
Carrier: dnt no
Posts: 5
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default String Overload?

Please Login to Remove!

Hi guys, we are pulling a string from the internet but it seems to make the blackberry freeze up.

If definately works because we tried using manual data using the same structure and it worked. So I can only assume that there is too much data for the string to handle. However it's 4kb... 4KB!!!

Please help.

Here is the string in is raw format.
Code:
<data>
<enquiry>
<ref>companyname/BOL/1611</ref>
<name>hello</name>
<status>Enquiry (Current)</status>
<date>20/02/2010</date>
</enquiry>
<enquiry>
<ref>companyname/BOL/1651</ref>
<name>hello</name>
<status>Enquiry (Current)</status>
<date>07/03/2010</date>
</enquiry>
<enquiry>
<ref>companyname/BOL/1657</ref>
<name>hello</name>
<status>Enquiry (Current)</status>
<date>08/03/2010</date>
</enquiry>
<enquiry>
<ref>companyname/BOL/1660</ref>
<name>hello</name>
<status>Enquiry (Current)</status>
<date>10/03/2010</date>
</enquiry>
<enquiry>
<ref>companyname/BOL/1663</ref>
<name>hello</name>
<status>Enquiry (Current)</status>
<date>12/03/2010</date>
</enquiry>
<enquiry>
<ref>companyname/BOL/1666</ref>
<name>hello</name>
<status>Enquiry (Current)</status>
<date>13/03/2010</date>
</enquiry>
<enquiry>
<ref>companyname/BOL/1669</ref>
<name>hello</name>
<status>Enquiry (Current)</status>
<date>13/03/2010</date>
</enquiry>
<enquiry>
<ref>companyname/BOL/1672</ref>
<name>hello</name>
<status>Enquiry (Current)</status>
<date>13/03/2010</date>
</enquiry>
<enquiry>
<ref>companyname/BOL/1675</ref>
<name>hello</name>
<status>Enquiry (Current)</status>
<date>13/03/2010</date>
</enquiry>
<enquiry>
<ref>companyname/BOL/1678</ref>
<name>hello</name>
<status>Enquiry (Current)</status>
<date>13/03/2010</date>
</enquiry>
<enquiry>
<ref>companyname/BOL/1681</ref>
<name>hello</name>
<status>Enquiry (Current)</status>
<date>14/03/2010</date>
</enquiry>
<enquiry>
<ref>companyname/BOL/1687</ref>
<name>hello</name>
<status>Enquiry (Current)</status>
<date>16/03/2010</date>
</enquiry>
<enquiry>
<ref>companyname/BOL/254</ref>
<name>hello</name>
<status>Enquiry (Expired)</status>
<date>18/06/2009</date>
</enquiry>
<enquiry>
<ref>companyname/BOL/262</ref>
<name>hello</name>
<status>Enquiry (Expired)</status>
<date>19/06/2009</date>
</enquiry>
<enquiry>
<ref>companyname/BOL/345</ref>
<name>hello</name>
<status>Enquiry (Expired)</status>
<date>07/07/2009</date>
</enquiry>
<enquiry>
<ref>companyname/BOL/584</ref>
<name>hello</name>
<status>Enquiry (Expired)</status>
<date>02/08/2009</date>
</enquiry>
<enquiry>
<ref>companyname/BOL/596</ref>
<name>hello</name>
<status>Enquiry (Expired)</status>
<date>04/08/2009</date>
</enquiry>
<enquiry>
<ref>companyname/BOL/617</ref>
<name>hello</name>
<status>Enquiry (Expired)</status>
<date>08/08/2009</date>
</enquiry>
<enquiry>
<ref>companyname/BOL/659</ref>
<name>hello</name>
<status>Enquiry (Expired)</status>
<date>11/08/2009</date>
</enquiry>
<enquiry>
<ref>companyname/BOL/845</ref>
<name>hello</name>
<status>Enquiry (Expired)</status>
<date>18/09/2009</date>
</enquiry>
<enquiry>
<ref>companyname/BOL/1548</ref>
<name>hello</name>
<status>Enquiry (Expired)</status>
<date>01/02/2010</date>
</enquiry>
<enquiry>
<ref>companyname/BOL/1566</ref>
<name>hello</name>
<status>Enquiry (Expired)</status>
<date>04/02/2010</date>
</enquiry>
<enquiry>
<ref>companyname/BOL/1590</ref>
<name>hello</name>
<status>Enquiry (Expired)</status>
<date>09/02/2010</date>
</enquiry>
<enquiry>
<ref>companyname/BOL/1583</ref>
<name>hello</name>
<status>Orders (Current)</status>
<date>19/02/2010</date>
</enquiry>
<enquiry>
<ref>companyname/BOL/1619</ref>
<name>hello</name>
<status>Orders (Current)</status>
<date>05/03/2010</date>
</enquiry>
<enquiry>
<ref>companyname/BOL/1586</ref>
<name>hello</name>
<status>Orders (Expired)</status>
<date>13/02/2010</date>
</enquiry>
<enquiry>
<ref>companyname/BOL/1169</ref>
<name>hello</name>
<status>Orders (Unplaced)</status>
<date>20/11/2009</date>
</enquiry>
<enquiry>
<ref>companyname/BOL/1239</ref>
<name>hello</name>
<status>Orders (Unplaced)</status>
<date>27/11/2009</date>
</enquiry>
<enquiry>
<ref>companyname/BOL/1410</ref>
<name>hello</name>
<status>Orders (Unplaced)</status>
<date>09/01/2010</date>
</enquiry>
<enquiry>
<ref>companyname/BOL/1535</ref>
<name>hello</name>
<status>Orders (Unplaced)</status>
<date>29/01/2010</date>
</enquiry>
</data>
Offline  
Old 03-18-2010, 05:22 PM   #2 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
Default

There is no 4K limit on strings, but why do you need a string anyway?

Typically, you process this input from a data input stream from your HTTP connection.

My guess: you have an error in your HTTP logic where you are reading the stream.

Post a code snippet.
Offline  




Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.