Check if the data has been read before sending in PIL mode

Check if the data has actually been read completely before sending