Added buffer check to channel send mechanism

Updated file transfer demo