Erel,
returns error if you send more than 48byte time.
With astreams.Write2 works but I have problems to insert a 3-second pause after sending the file and before the close command.
Sending command to open
astreams.Write ("OPEN_WRITE")
Start Writing Block
astreams.Write2 (Buffer, Read, 48)
Here I must insert a pause of 3 seconds or by sending the next command is closing I error. After sending the file on the receiving device expects a 3-second pause before receiving the command CLOSE.
Sending shutdown command
astreams.Write ("CLOSE_WRITE")