segment file, send over network