iOS Question B4A to B4I Problem

AndreasGoering

Member
Licensed User
Longtime User
Ah thanks that helps a lot.
Now i have changed the Project to HttpUtils.

The next problem is the "TextReader"
I found a post that “Textreader” is not available B4I and I should use File.ReadString2 or File.WriteString2.
But I need help in this case:


B4X:
  If Job.Success Then
     Dim myTextReader As TextReader
     myTextReader.Initialize(Job.GetInputStream)
     Dim Xml As String = myTextReader.ReadAll
     Log(Xml)
     myTextReader.Close

I’ve tried a few solutions but none of them works fine.
 
Last edited:
Upvote 0

AndreasGoering

Member
Licensed User
Longtime User
Note that there is no good reason to use this code in B4A. Just call Job.GetString. The same is true in B4i.

Ah great, thanks. That works fine.

Now I would like to generate the request to a XML file.
Is there are a Soultion or a Tutorial available?
 
Last edited:
Upvote 0
Top