Are you reading the entire file in bytes?