Sending and reveiving small files should be relatively easy with the new send_data functions. Huge files should be split in smaller parts before sending them with send_data.