adds file transfer support

files are converted to array of bytes and then sent normally via a new
stub function transferFile()