'Receiver B4A
Sub astreamO_NewObject(Key As String, Value As Object)
Log(Value)
Select Key
Case "form"
Dim p As Person = Value
txtFirst.Text = p.First
txtLast.Text = p.Last
txtAnimal.Text = p.Animal
Case "simple value"
Dim number As Int = Value
ToastMessageShow("Received lucky number: " & number, False)
Case "image"
Dim bmp As Bitmap = Value
Dim r As Rect
r.Initialize(0, 0, Panel1.Width, Panel1.Height)
cvs.DrawBitmap(bmp, Null, r)
Panel1.Invalidate
Case "file"
Dim fileName As String = Value
MsgboxAsync(Value,"Here")
File.Size(astreamO.TempFolder, fileName)
Log("Received file. " )
End Select
End Sub