You can't send the entire file at once, it'll exceed a queue limit. You need to use the on SOCKWRITE event to detect when you can send another lot of data.

try http://helpdesk.zaz.net/documents/socks.php (assuming it still exists...)