getDataInputStream and output