Read 8192 bytes from the file, send it with /sockwrite, then read the next 8192 bytes, and so on. Don't try sending the entire file in one /sockwrite.