You may be reading it too slowly from the buffer and it overflows hence the lost bytes. Thats all I can think of.