read DataOutStream data,and fix code error