String Max Value (?)

poseidon

Member
Licensed User
Longtime User
I read
Code: Copy
http://www.b4x.com/android/wiki/index.php/Numeric_Variable_Ranges

the type String not defined.


thanks
 
re

?

I use a socket to read a XMLstream to b4android stringbuilder, success when the string is 2mb.

when the string is 3mb stringbuilder causes error!

-

btw RandomAccessFile IsInitialized property not exists :( ?

-answer, when CurrentPosition=0
 
Last edited:
Upvote 0
re

maybe my problem is "is enough memory available"

already turned to filebase (any incoming byte, written to temp.xml and in the end, read it)

btw if you like to try - here is my XML 3.24mb that I cant read 'on stringbuilder' (when is 2mb all ok!)
Code: Copy
http://www.myupload.dk/showfile/1Z8s8s5BR.zip
(search for the string download now on page)


Code: Copy
Dim result As StringBuilder 'holds the response, when server stop sending, will parsed by XML obj

Sub AStreams_NewData (Buffer() As Byte)
   Dim ReceivedSTR As String  
   
   ReceivedSTR=BytesToString(Buffer,0,Buffer.Length,"UTF8")

        result.Append(ReceivedSTR) //exception here
 
Last edited:
Upvote 0
Back
Top