Private Sub HTTPClient_ResponseSuccess (Response As OkHttpResponse, TaskId As Int)
Dim os As OutputStream
os.InitializeToBytesArray(100)
'Write response as a text file.
'This will work, but trying to avoid this extra step.
'Response.GetAsynchronously("Response",File.OpenOutput(File.DirInternalCache,"Response.txt",False),True,TaskId)
Response.GetAsynchronously("Response",os,True,TaskId)
Dim DataBytes() As Byte = os.ToBytesArray
Dim strTemp As String = BytesToString(DataBytes,0,DataBytes.Length,"UTF8")
End Sub