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!)
B4X:
http://www.myupload.dk/showfile/1Z8s8s5BR.zip
(search for the string download now on page)
B4X:
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