Hi, I'm using Erel's tutorial on AsyncStreamsObject. When the drawing is received on the second device I need to copy it to a res folder (#AdditionalRes: ..\Res). The specific target location is (res\drawable)
I appreciate any input.
B4X:
Sub astreamO_NewObject(Key As String, Value As Object)
Select Key
Case "image"
Dim bmp As Bitmap = Value
'------------------------------------------------------------
File.Copy ???
'------------------------------------------------------------
Dim r As Rect
r.Initialize(0, 0, pnlframe.Width, pnlframe.Height)
imgbackframe.SetBackgroundImage(bmp)
pnlframe.Invalidate
Case "file"
Dim fileName As String = Value
Log("Received file. File size: " & File.Size(astreamO.TempFolder, fileName))
End Select
End Sub
I appreciate any input.