make file data send helper functions
send and receive file data