added toInputStream in OutputStreamOp