Support read header and read file info message in demo.