If Successful Then
astream.Initialize(socket.InputStream,socket.OutputStream,"astream")
' astream.InitializePrefix(socket.InputStream,True,socket.OutputStream,"astream")
End If
Private Sub astream_NewData (Buffer() As Byte)
If File.Exists(File.DirRootExternal, "Pictures/1.jpg") Then
Dim Data() As Byte=Bit.InputStreamToBytes(File.OpenInput(File.DirRootExternal, "Pictures/1.jpg")) ' jpg 156 Ko
If astream.Write(Data) Then
Log(Data.Length)
End If
Else
Log("File Not Found")
End If
End Sub