Hello!
I downloaded and installed "
http://www.b4x.com/android/fo...ceive-objects-over-the-network.34612/#content" (B4J and B4A)
Whenever I send a file from PC to my android device, I receive a number but not a file Name (see *** in code below)!
Sub astreamO_NewObject(Key AsString, Value AsObject)
Select Key
Case"form"
Dim p AsPerson = Value
txtFirst.Text = p.First
txtLast.Text = p.Last
txtAnimal.Text = p.Animal
Case"simple value"
Dim number AsInt = Value
Log("Received lucky number: " & number)
Case"image"
Dim bmp AsImage = Value
cvs.DrawImage(bmp, 0, 0, cvs.Width, cvs.Height)
Case"file"
Dim fileName AsString = Value '*** value is always a number, never a file name
Log("Received file. File size: " & File.Size(astreamO.TempFolder, fileName))
EndSelect
End Sub
How can I get the real file Name as it has been transmitted by PC??
If the file is very large I get a Log "sending message to waiting queue" and astreamO_NewObject() is never called again!
Thx