fix upload bug.the byte array is longer than original when sended by stream