Implement new function to send files in chunks using a read callback.